1 2 3 4 5 6 7 8 9 10 11
use std::env; fn main() { // link to system tspi println!("cargo:rustc-link-lib=tspi"); // add to the search path anything set in the TSPI_LIBS_PATH if let Ok(path) = env::var("TSPI_LIBS_PATH") { println!("cargo:rustc-link-search={}", path); } }