Skip to main content

Module versioning

Module versioning 

Source
Expand description

Release version rewriting across Cargo manifests and lockfiles.

Ports the semantics of scripts/release_version.py onto toml_edit: read the current version from [package] (falling back to [workspace.package]), then rewrite the version in every workspace member manifest — including internal dependency entries that pin a member’s version — plus the workspace Cargo.lock, without shelling out to cargo.

Structs§

VersionRewritePlan

Functions§

current_version
Read the release version from the repository root manifest.
plan_version_rewrite
Plan the rewrite of every member manifest and the lockfile to new_version, without touching the filesystem.