Like RUSTFLAGS, build scripts are an important escape hatch. Like RUSTFLAGS (#12739), we should find replacements for common uses of build scripts so people don't have to reach to this escape hatch so often
Reducing build scripts would
- Improve build times
- Reduce risk of bugs
- Reduce the dependency review audit scope
Uses of build scripts
Like RUSTFLAGS, build scripts are an important escape hatch. Like RUSTFLAGS (#12739), we should find replacements for common uses of build scripts so people don't have to reach to this escape hatch so often
Reducing build scripts would
Uses of build scripts
#[cfg(accessible(::path::to::thing))]rust#64797#[cfg(version(..))]rust#64796cfgvalues available at runtime (e.g. in--bugreport,--version, or crash reports, or for tests building examples)cfg_value!,cfg_values!,try_cfg_value!,try_cfg_values!(see also mutually exclusive features)TARGETavailable at runtime (e.g.--version, building examples in tests)package.rs) #12552cfg_aliasrfcs#3804-syscrates / FFI?