Rust: Sharing Package Data

Official Docs: [[workspace.package]]( > The `workspace.package` table is where you define keys that can be inherited > by members of a workspace. These keys can be inherited by defining them in the > member package with `{key}.workspace = true`. See also: [shareing package dependencies](/rust/workspace-dependencies/).
Workspace `Cargo.toml`
version = "1.2.3"
authors = ["Nice Folks"]
description = "A short description of my package"
documentation = ""
Child package's `Cargo.toml`
name = "bar"
version.workspace = true
authors.workspace = true
description.workspace = true
documentation.workspace = true