cargo:rustc-cfg=... cargo:rustc-env=... However, cargo supports many more instructions that are commonly used in Rust build scripts to influence compilation behavior, such as: cargo:rustc-link-lib= ...