2 unstable releases
Uses old Rust 2015
0.2.0 | Oct 17, 2020 |
---|---|
0.1.0 | Jun 24, 2018 |
#1825 in Hardware support
7KB
Powercap Rust Bindings
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.
Dependencies
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.
Usage
Add powercap-sys
as a dependency in Cargo.toml
:
[dependencies]
powercap-sys = "0.2"
Project Source
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.
No runtime deps
~0–1.8MB
~34K SLoC