Struct build_stamp::BuildStamp[][src]

pub struct BuildStamp {
    pub git_revision: &'static str,
    pub git_revision_cleanness: &'static str,
    pub git_clean: bool,
    pub git_status: &'static str,
    pub build_time_seconds: u64,
    pub build_time_nanos: u64,
}
Expand description

Parameters from build time. Note that cargo won’t regenerate this if source files don’t change. I recommend a post-commit hook to touch build.rs if you want revs marked clean.

Fields

git_revision: &'static str

Commit hash of HEAD at build time.

git_revision_cleanness: &'static str

Whether the working directory was clean at build time.

git_clean: bool

Git revision followed by a * if the status was not clean at the time.

git_status: &'static str

Output of git status at build time.

build_time_seconds: u64build_time_nanos: u64

Implementations

Commit hash of HEAD at build time.

Whether the working directory was clean at build time.

Git revision followed by a * if the status was not clean at the time.

Output of git status at build time.

Local system time of build.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.