提交
This commit is contained in:
8
build.rs
Normal file
8
build.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
let target = std::env::var("TARGET").unwrap();
|
||||
if target.contains("pc-windows") {
|
||||
let npcap_path = std::env::var("NPCAP_PATH").unwrap();
|
||||
println!("cargo:rustc-link-search=native={}", npcap_path);
|
||||
println!("cargo:rustc-link-lib=Packet");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user