c3f5771541
- Regenerate Rust wrapper against latest amdsmi.h header
- Add libc dependency for proper C memory management
- Fix compilation errors caused by types removed from amdsmi.h
- Add FFI bindings regeneration documentation in README
This update ensures the Rust bindings are synchronized with the latest
C API and provides guidance for developers on regenerating
Bindings.
Signed-off-by: Tim Huang <tim.huang@amd.com>
[ROCm/amdsmi commit: 51a44bc0c4]
34 satır
705 B
TOML
34 satır
705 B
TOML
[package]
|
|
name = "amdsmi"
|
|
version = "0.1.2"
|
|
edition = "2021"
|
|
description = "A rust binding for the AMD System Management Interface (AMD-SMI) library"
|
|
repository = "https://github.com/ROCm/amdsmi/rust-interface"
|
|
readme = "README.md"
|
|
keywords = ["amdsmi", "rust binding"]
|
|
license = "Copyright (c) 2019-2024 Advanced Micro Devices, Inc"
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
|
|
[build-dependencies]
|
|
bindgen = "0.70.1"
|
|
|
|
[lib]
|
|
name = "amdsmi"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "amdsmi_get_gpu_info"
|
|
crate-type = ["bin"]
|
|
|
|
[[example]]
|
|
name = "amdsmi_exporter"
|
|
crate-type = ["bin"]
|
|
|
|
[dev-dependencies]
|
|
prometheus-client = "0.22.3"
|
|
axum = "0.5"
|
|
hyper = "0.14"
|
|
clap = "3.0"
|
|
tokio = { version = "1", features = ["full"] } |