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: u64
build_time_nanos: u64
Implementations
Commit hash of HEAD
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
Auto Trait Implementations
impl RefUnwindSafe for BuildStamp
impl Send for BuildStamp
impl Sync for BuildStamp
impl Unpin for BuildStamp
impl UnwindSafe for BuildStamp
Blanket Implementations
Mutably borrows from an owned value. Read more