macsmc 0.1.1

Library to call the macOS SMC
macsmc-0.1.1 has been yanked.
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.