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

Number of seconds since ::std::time::UNIX_EPOCH

Equivalent to the CARGO_PKG_VERSION environment variable.

Equivalent to PROFILE in environment variables passed to `build.rs'.

Should usually be "debug" or "release".

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.

Equivalent to the CARGO_PKG_NAME environment variable.

Equivalent to the CARGO_PKG_AUTHORS environment variable.

Equivalent to the CARGO_PKG_DESCRIPTION environment variable.

Equivalent to the CARGO_PKG_HOMEPAGE environment variable.

Equivalent to the OPT_LEVEL environment variable in build.rs.

Equivalent to the CARGO_CFG_* environment variables in build.rs.

Equivalent to the CARGO_FEATURE_* environment variables in build.rs.

Trait Implementations

impl Debug for BuildDetail
[src]

Formats the value using the given formatter. Read more

impl Clone for BuildDetail
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for BuildDetail
[src]

impl Hash for BuildDetail
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for BuildDetail
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BuildDetail
[src]

Auto Trait Implementations

impl Send for BuildDetail

impl Sync for BuildDetail