| 1 |
[package] |
| 2 |
name = "amdsmi" |
| 3 |
version = "0.1.2" |
| 4 |
edition = "2021" |
| 5 |
description = "A rust binding for the AMD System Management Interface (AMD-SMI) library" |
| 6 |
repository = "https://github.com/ROCm/amdsmi/rust-interface" |
| 7 |
readme = "README.md" |
| 8 |
keywords = ["amdsmi", "rust binding"] |
| 9 |
license = "Copyright (c) 2019-2024 Advanced Micro Devices, Inc" |
| 10 |
|
| 11 |
[dependencies] |
| 12 |
libc = "0.2" |
| 13 |
|
| 14 |
[build-dependencies] |
| 15 |
bindgen = "0.70.1" |
| 16 |
|
| 17 |
[lib] |
| 18 |
name = "amdsmi" |
| 19 |
path = "src/lib.rs" |
| 20 |
|
| 21 |
[[example]] |
| 22 |
name = "amdsmi_get_gpu_info" |
| 23 |
crate-type = ["bin"] |
| 24 |
|
| 25 |
[[example]] |
| 26 |
name = "amdsmi_exporter" |
| 27 |
crate-type = ["bin"] |
| 28 |
|
| 29 |
[dev-dependencies] |
| 30 |
prometheus-client = "0.22.3" |
| 31 |
axum = "0.5" |
| 32 |
hyper = "0.14" |
| 33 |
clap = "3.0" |
| 34 |
tokio = { version = "1", features = ["full"] } |