1 2 3 4 5 6 7 8 9 10 11
fn main() { // Try pkg-config first (correct way) if pkg_config::Config::new() .atleast_version("0.3.0") .probe("libubootenv") .is_err() { // Fallback: assume system linker can find it println!("cargo:rustc-link-lib=ubootenv"); } }