1 use std::env; 2 main()3fn main() { 4 // Use NSS_LIB_DIR lazily. If it's not set and we can't find NSS in the path, 5 // the build will fail. 6 #[cfg(test)] 7 let lib_dir = env::var("NSS_LIB_DIR"); 8 if let Ok(lib_dir) = env::var("NSS_LIB_DIR") { 9 println!("cargo:rustc-link-search={}", lib_dir); 10 } 11 } 12