machine-uid 0.5.2

Get os native machine id without root permission.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;
fn main() {
    let target_os = env::var("CARGO_CFG_TARGET_OS");
    if target_os.is_ok() && target_os.unwrap() == "windows" {
        use cc::Build;
        // println!("cargo:rustc-link-lib=Kernel.a");
        Build::new()
            .file("src/win.cpp")
            .cpp_link_stdlib("stdc++")
            .compile("machine-uid");
    }
}