battery 0.7.8

Cross-platform information about the notebook batteries
Documentation
1
2
3
4
5
6
7
8
9
10
use std::env;

fn main() {
    match env::var("CARGO_CFG_TARGET_OS").as_ref().map(|x| &**x) {
        Ok("macos") | Ok("ios") => {
            println!("cargo:rustc-link-lib=framework=IOKit");
        }
        _ => {}
    }
}