Open
Description
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
- Version detection
- Making
cfg
values available at runtime (e.g. in--bugreport
,--version
, or crash reports, or for tests building examples)- Possibly provide
cfg_value!
,cfg_values!
,try_cfg_value!
,try_cfg_values!
(see also mutually exclusive features)
- Possibly provide
- Making
TARGET
available at runtime (e.g.--version
, building examples in tests) - Codegen
- cfg_aliases (see also Reduce the need for users to write build scripts #14948 (comment))
- Catch-all: Tracking issue for RFC 2196, "metabuild: semantic build scripts for Cargo" #14903
- Note: this would also allow consolidating the ecosystem which would help with baking-in more features to replace build scripts
- Enable linker warnings on Windows
- Embedded windows manifests
- Can we use this for
-sys
crates / FFI?
Metadata
Metadata
Assignees
Type
Projects
Status
No status