Skip to content

Commit

Permalink
Merge pull request #5 from Hanaasagi/clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi authored Jul 11, 2023
2 parents cd8c8e9 + f345c6e commit d19feb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Get os native machine id without root permission.
[target.'cfg(windows)'.dependencies]
winreg = "0.11"

[build-dependencies]
[target.'cfg(windows)'.build-dependencies]
cc = "1.0"
bindgen = "0.59"
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use cc::Build;

fn main() {
println!("cargo:rerun-if-changed=src");
#[cfg(target_os = "windows")]
{
use cc::Build;
println!("cargo:rustc-link-lib=Kernel32");
Build::new().file("src/win.cpp").compile("machine-uid");
}
Expand Down

0 comments on commit d19feb7

Please sign in to comment.