Skip to main content

Module cargo

Module cargo 

Source

Structsยง

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.

Constantsยง

EXTRA_CHECK_CFGS ๐Ÿ”’
Extra --check-cfg to add when building the compiler or tools (Mode restriction, config name, config values (if any))

Functionsยง

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.