pub struct Unit {
pub package: String,
pub version: String,
pub target: String,
pub kind: UnitKind,
pub total: Millis,
pub metadata_at: Option<Millis>,
pub requires_full_closure: bool,
}Expand description
One indivisible piece of scheduled work.
Fields§
§package: StringThe package the unit belongs to.
version: StringThe package’s version.
target: StringThe target within the package, such as a library or binary name.
kind: UnitKindWhat sort of work this is.
total: MillisHow long the whole unit takes.
metadata_at: Option<Millis>How far into the unit its metadata becomes available, if it produces any.
Some exactly when other units can begin against this one’s metadata rather than waiting
for it to finish. Must not exceed total.
requires_full_closure: boolWhether this unit needs every unit it transitively depends on to be completely finished.
True for anything that links: an executable, a test, a procedural macro, a dynamic or static library. Such a unit cannot start until its whole transitive dependency closure is done, not merely its immediate dependencies, because a linker needs object code that pipelining does not guarantee to exist yet.