Skip to main contentModule cargo
Source - Cargo ๐
- HostFlags ๐
- Flags that are passed to the
rustc shim binary. These flags will only be applied when
compiling host code, i.e. when --target is unset. - Rustflags ๐
- Represents flag values in
String form with a \x1f delimiter to pass to the compiler later.
- EXTRA_CHECK_CFGS ๐
- Extra
--check-cfg to add when building the compiler or tools
(Mode restriction, config name, config values (if any))
- apply_pgo ๐
- Applies PGO compile flags to the given Cargo invocation based on the given PGO config.
PGO flags are only applied when compiling a stage2 component.
- cargo_profile_var ๐
- flags_env ๐
- Picks the environment variable and value to pass a set of
Rustflags to cargo. - prepare_shims_dump_dir ๐
- Ensures that the behavior dump directory is properly initialized.