macsmc 0.1.2

Library to call the macOS SMC
docs.rs failed to build macsmc-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: macsmc-0.1.7

SMC client for macOS

Examples

# use macsmc::*;
# fn main() -> Result<()> {
let mut smc = Smc::connect()?;
let cpu_temp = smc.cpu_temperature()?;
assert!(*cpu_temp.proximity > 0.0);
// will disconnect
drop(smc);
# Ok(())
# }

See Smc for the starting point.