Cargo
Rust workspace support and crates.io publishing.
The Cargo plugin is enabled by default. It discovers workspace members from Cargo.toml, bumps versions, updates dependency ranges, and publishes to crates.io.
Discovery
Tegami reads the root Cargo.toml and expands [workspace].members (respecting exclude). Packages need a name and version — either in the crate manifest or inherited from [workspace.package].
Configuration
const paper = tegami({
cargo: {
updateLockFile: false,
bumpDep: ({ kind }) => (kind === "dependencies" ? "patch" : false),
},
});| Option | Default | Description |
|---|---|---|
updateLockFile | true | Run cargo update --workspace after versioning |
bumpDep | — | Decide how to bump dependents when a crate is bumped |
Default behavior:
dependencies→ patch bump on the dependentbuild-dependenciesanddev-dependencies→ no automatic bump
Tegami