Skip to main content

Module rustc

Module rustc 

Source
Expand description

Information about the build related to rustc. This is a frontend interface informed by proc-macros at build time. Since the project is split into several crates, lower-level information is supplied from each crate during static initialization.

Staticsยง

FEATURES ๐Ÿ”’
Processed list of enabled features across all project crates. This is generated from the data in FLAGS.
FLAGS
Raw capture of rustc flags used to build each crate in the project. Informed by rustc_flags_capture macro (one in each crateโ€™s mod.rs). This is done during static initialization which is why itโ€™s mutex-protected and pub. Should not be written to by anything other than our macro.
RUSTC_VERSION ๐Ÿ”’

Functionsยง

append_features ๐Ÿ”’
features
List of features enabled for the project.
init_features ๐Ÿ”’
version
Version of the rustc compiler used during build.