#[non_exhaustive]pub struct BuildMeta {Show 15 fields
pub cargo_version: Option<String>,
pub rustc_version: Option<String>,
pub host: Option<String>,
pub target: Option<String>,
pub profile: Option<String>,
pub jobs: Option<u32>,
pub cpus: Option<u32>,
pub observed_max_concurrency: Option<u32>,
pub units_total: usize,
pub units_fresh: usize,
pub compilation_span: Millis,
pub reported_total: Option<Millis>,
pub excluded_prefix: Millis,
pub targets: Option<String>,
pub build_start: Option<String>,
}Expand description
Where a build’s numbers came from.
Every field the timing report does not state is None rather than guessed. cargo_version is
one of those: the report’s header names the rustc version and not Cargo’s, so a caller that
knows it should fill this in.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cargo_version: Option<String>The Cargo version, which the timing report does not state.
rustc_version: Option<String>The rustc version, from the timing report’s header.
host: Option<String>The host triple.
target: Option<String>The target triple.
profile: Option<String>The profile the build used.
jobs: Option<u32>The -j the build ran with.
cpus: Option<u32>The machine’s processor count.
observed_max_concurrency: Option<u32>The peak number of units Cargo actually had in flight, which can exceed jobs because a
build-script execution takes no compile token.
units_total: usizeUnits in the build.
units_fresh: usizeOf those, units that were reused from the cache. Always zero, since a build with any is refused.
compilation_span: MillisThe last unit’s end minus the first unit’s start.
reported_total: Option<Millis>Cargo’s own total for the build.
excluded_prefix: MillisThe reported total minus the compilation span: fetching, resolution, and anything else outside the unit model. Reported rather than folded in.
targets: Option<String>The targets the build was asked for, as the report’s header displays them.
build_start: Option<String>When the build started, exactly as the report wrote it.