| Crates.io | powercap-sys |
| lib.rs | powercap-sys |
| version | 0.2.0 |
| created_at | 2018-06-24 04:14:01.001911+00 |
| updated_at | 2020-10-17 17:39:10.750591+00 |
| description | FFI bindings to libpowercap for interacting with the Linux powercap sysfs interface. |
| homepage | https://github.com/powercap/powercap-sys |
| repository | https://github.com/powercap/powercap-sys |
| max_upload_size | |
| id | 71440 |
| size | 17,341 |
This Rust crate provides declarations and linkage for the powercap C library.
The latest powercap C library can be found at https://github.com/powercap/powercap.
The powercap library and headers must be installed where they can be found by pkg-config.
In Debian Unstable and Ubuntu Linux >= 18.04, install the libpowercap-dev package.
Otherwise install it from the source (linked above).
Bindings are generated using the Rust bindgen crate.
Add powercap-sys as a dependency in Cargo.toml:
[dependencies]
powercap-sys = "0.2"
Find this and related project sources at the powercap organization on GitHub.
This project originates at: https://github.com/powercap/powercap-sys
Bug reports and pull requests for bug fixes and enhancements are welcome.