pub enum BuildDetail {
Timestamp,
Version,
Profile,
RustFlags,
Name,
Authors,
Description,
Homepage,
OptLevel,
Cfg,
Features,
// some variants omitted
}Expand description
List of build details that can be included in the generated code.
Variants§
Timestamp
Number of seconds since ::std::time::UNIX_EPOCH
Version
Equivalent to the CARGO_PKG_VERSION environment variable.
Profile
Equivalent to PROFILE in environment variables passed to `build.rs’.
Should usually be "debug" or "release".
RustFlags
Equivalent to the RUSTFLAGS environment variable.
Note that this isn’t all of the flags passed to rustc, but instead
it is only the custom extra flags.
Name
Equivalent to the CARGO_PKG_NAME environment variable.
Authors
Equivalent to the CARGO_PKG_AUTHORS environment variable.
Description
Equivalent to the CARGO_PKG_DESCRIPTION environment variable.
Homepage
Equivalent to the CARGO_PKG_HOMEPAGE environment variable.
OptLevel
Equivalent to the OPT_LEVEL environment variable in build.rs.
Cfg
Equivalent to the CARGO_CFG_* environment variables in build.rs.
Features
Equivalent to the CARGO_FEATURE_* environment variables in build.rs.
Trait Implementations§
Source§impl Clone for BuildDetail
impl Clone for BuildDetail
Source§fn clone(&self) -> BuildDetail
fn clone(&self) -> BuildDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more