// The reason we use a build.rs rather than `./.cargo/config.toml` // is because we want to pass relative path to rustc-link-search // I tried relative paths in config toml but didn't work fn main() { println!("cargo:rustc-link-search=./lib/"); println!("cargo:rustc-link-lib=static=spice"); }