cargo-manifest
Rust Workspace package inheritance
Centralize shared metadata at the workspace root and opt in from member manifests. Members still have distinct package names. Example format: toml. Run in a disposable copy of v16/fixtures/projects/workspace-demo. Expected result (not executed): The app inherits version 0.1.0 and edition 2024 from the root. Common mistake: Assuming every root field is inherited without an explicit opt-in.
Formal Syntax & Structure
rust syntaxrust
[package]Working Example
Example Snippetrust
[package]name = "app"version.workspace = trueedition.workspace = truerust-version.workspace = truepublish.workspace = true