pub struct BuildInfo { /* private fields */ }Expand description
Identity of one compiled crate.
Implementations§
Source§impl BuildInfo
impl BuildInfo
Sourcepub fn commit(&self) -> &'static str
pub fn commit(&self) -> &'static str
Short commit hash, empty when the build could not learn it.
Sourcepub fn commit_date(&self) -> &'static str
pub fn commit_date(&self) -> &'static str
Commit date, empty in a registry or vendored build.
Sourcepub fn dirty(&self) -> Option<bool>
pub fn dirty(&self) -> Option<bool>
Whether the crate’s sources, manifest or lockfile differed from its commit. None when the build could not
tell.
Sourcepub fn source_hash(&self) -> Option<u64>
pub fn source_hash(&self) -> Option<u64>
Hash of the crate’s files under src and its manifest. A crate stamped with its commit, Henad’s engine
included, adds the nearest Cargo.lock outside a package. In Henad’s checkout the engine’s hash covers its four
crates. None when the build did not compute a hash.
Sourcepub fn debug_build(&self) -> bool
pub fn debug_build(&self) -> bool
Whether the crate was compiled with debug assertions.
Trait Implementations§
impl Copy for BuildInfo
impl Eq for BuildInfo
impl StructuralPartialEq for BuildInfo
Auto Trait Implementations§
impl Freeze for BuildInfo
impl RefUnwindSafe for BuildInfo
impl Send for BuildInfo
impl Sync for BuildInfo
impl Unpin for BuildInfo
impl UnsafeUnpin for BuildInfo
impl UnwindSafe for BuildInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more