cargo-workspaces-featureslisted
Install: claude install-skill rustcircle/c101
# Cargo workspaces, features and releases
Verified October 2026 on Cargo 1.99 (resolver 3, `cargo publish --workspace`), cargo-hack 0.6,
cargo-deny 0.20, cargo-semver-checks 0.51, release-plz 0.3, dist 0.32, cargo-msrv 0.19.
Never raise MSRV or edition as a side effect of another change: both are breaking for users.
Deep material: [CI matrix template](references/ci-matrix.md) |
[supply chain and release workflows](references/release-and-supply-chain.md)
## 1. Virtual workspace template
```toml
# Cargo.toml (root, no [package])
[workspace]
resolver = "3" # must be explicit in a virtual workspace; MSRV-aware resolution
members = ["crates/*"]
exclude = ["fuzz"]
[workspace.package] # inheritable: version, edition, rust-version, license, authors,
version = "0.4.0" # description, documentation, homepage, repository, readme,
edition = "2024" # keywords, categories, include, exclude, publish, license-file
rust-version = "1.85"
license = "MIT OR Apache-2.0"
repository = "https://github.com/org/app"
[workspace.dependencies] # one version per dependency for the whole tree
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", default-features = false }
appcore = { path = "crates/core", version = "0.4.0" } # version needed to publish dependents
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "deny"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
# unsafe_code = "forbid" belongs in crat