Struct build_info_common::BuildInfo
source · pub struct BuildInfo {
pub timestamp: DateTime<Utc>,
pub profile: String,
pub optimization_level: OptimizationLevel,
pub crate_info: CrateInfo,
pub target: TargetInfo,
pub compiler: CompilerInfo,
pub version_control: Option<VersionControl>,
}Expand description
Information about the current build
Fields§
§timestamp: DateTime<Utc>Updated whenever build.rs is rerun.
profile: StringCargo currently supports two different build types: "Release" and "Debug"
optimization_level: OptimizationLevelThe optimization level can be set in Cargo.toml for each profile
crate_info: CrateInfoInformation about the current crate
target: TargetInfoInformation about the target system
compiler: CompilerInfoInformation about the compiler used
version_control: Option<VersionControl>Some if the project is inside a check-out of a supported version control system
Trait Implementations§
source§impl Ord for BuildInfo
impl Ord for BuildInfo
source§impl PartialEq<BuildInfo> for BuildInfo
impl PartialEq<BuildInfo> for BuildInfo
source§impl PartialOrd<BuildInfo> for BuildInfo
impl PartialOrd<BuildInfo> for BuildInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more