Cargo
Rust workspace support and crates.io publishing.
The Cargo plugin discovers workspace members from Cargo.toml, bumps versions, updates dependency ranges, and publishes to crates.io.
import { tegami } from "tegami";
import { cargo } from "tegami/plugins/cargo";
const paper = tegami({
plugins: [cargo()],
});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({
plugins: [
cargo({
updateLockFile: false,
bumpDep: ({ kind }) => (kind === "dependencies" ? "patch" : false),
}),
],
});Prop
Type
Default behavior:
dependencies→ patch bump on the dependentbuild-dependenciesanddev-dependencies→ no automatic bump