Enum build_details::BuildDetail [−][src]
pub enum BuildDetail { Timestamp, Version, Profile, RustFlags, Name, Authors, Description, Homepage, OptLevel, Cfg, Features, // some variants omitted }
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
impl Debug for BuildDetail
[src]
impl Debug for BuildDetail
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BuildDetail
[src]
impl Clone for BuildDetail
fn clone(&self) -> BuildDetail
[src]
fn clone(&self) -> BuildDetail
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for BuildDetail
[src]
impl Copy for BuildDetail
impl Hash for BuildDetail
[src]
impl Hash for BuildDetail
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for BuildDetail
[src]
impl PartialEq for BuildDetail
fn eq(&self, other: &BuildDetail) -> bool
[src]
fn eq(&self, other: &BuildDetail) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for BuildDetail
[src]
impl Eq for BuildDetail
Auto Trait Implementations
impl Send for BuildDetail
impl Send for BuildDetail
impl Sync for BuildDetail
impl Sync for BuildDetail