Skip to main content

EMPTY_ARTIFACTS

Static EMPTY_ARTIFACTS 

Source
pub static EMPTY_ARTIFACTS: ReleaseArtifacts
Expand description

A shared empty artifact set — the value carried through the dry-run / build phases and by every non-publish caller (EffectCtx::artifacts must always point at something).

A module-level static (not an associated const) so &EMPTY_ARTIFACTS is a genuine &'static ReleaseArtifacts that a returning function can hand out; a const holding a Vec (which has Drop) is inlined at each use site as a local temporary and cannot escape its enclosing expression.