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.

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.