This commit is contained in:
Starrysky
2026-09-25 16:35:24 +08:00
parent 6d95a4fc39
commit e9a58952dc
12 changed files with 5054 additions and 0 deletions

8
build.rs Normal file
View 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");
}
}