8 lines
288 B
Rust
8 lines
288 B
Rust
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");
|
|
}
|
|
} |