Skip to main content

VERSION_EXCEPTIONS

Static VERSION_EXCEPTIONS 

Source
static VERSION_EXCEPTIONS: &[&str]
Expand description

List of packages that are allowed to have a version.

Each of these must also set publish = false, since carrying a version forfeits the implicit publishing protection described at the module level.

vmgstool publishes a versioned binary, and its release tag is built from the version in its manifest.

openvmm and openvmm_build_info carry the workspace version because OpenVMM must retain its identity in a Git-free source tree. The version has to travel inside the source, since a downstream builder cannot recover it from Git metadata. Cargo identifies the product package with this version, and openvmm_build_info exposes the corresponding CLI identity.

If this list grows much past a handful, replace it with a package.metadata.xtask.house-rules opt-in, the way excluded-from-workspace below already works – keeping the policy next to the crate it applies to.