Summary
Please extend lading bump to update version entries inside
[workspace.dependencies], [[workspace.dependencies]] (if present), and
optionally the corresponding workspace.dev-dependencies / workspace.build-dependencies
sections. Today, only [dependencies], [dev-dependencies], and
[build-dependencies] inside manifests are updated.
Motivation
Workspaces that centralize dependency versions in [workspace.dependencies]
expect a single lading bump run to keep all version references consistent.
In the current behaviour, workspace entries are left unchanged, which can be
misleading for crates that rely on workspace dependency inheritance (e.g.
dependency.workspace = true). It also means internal path dependencies
specified in [workspace.dependencies] can remain stale.
Current behaviour
lading bump updates [package].version in workspace members.
- It updates dependency versions in
[dependencies], [dev-dependencies], and
[build-dependencies] in each manifest.
- It does not update
[workspace.dependencies] in the root Cargo.toml.
Expected behaviour
- When
lading bump <version> is run, the tool should also update version
entries for workspace crates in [workspace.dependencies] (and, ideally,
workspace.dev-dependencies / workspace.build-dependencies).
Proposed approach
- Extend the dependency section list in the bump logic to include
workspace.dependencies (and the dev/build variants).
- Reuse the existing dependency update logic to keep behaviour consistent with
crate-level dependency sections.
Optional configuration
If desired, this could be gated behind a config flag, but defaulting to “on”
would match expectations for workspace-managed dependency versions.
Summary
Please extend
lading bumpto update version entries inside[workspace.dependencies],[[workspace.dependencies]](if present), andoptionally the corresponding
workspace.dev-dependencies/workspace.build-dependenciessections. Today, only
[dependencies],[dev-dependencies], and[build-dependencies]inside manifests are updated.Motivation
Workspaces that centralize dependency versions in
[workspace.dependencies]expect a single
lading bumprun to keep all version references consistent.In the current behaviour, workspace entries are left unchanged, which can be
misleading for crates that rely on workspace dependency inheritance (e.g.
dependency.workspace = true). It also means internal path dependenciesspecified in
[workspace.dependencies]can remain stale.Current behaviour
lading bumpupdates[package].versionin workspace members.[dependencies],[dev-dependencies], and[build-dependencies]in each manifest.[workspace.dependencies]in the rootCargo.toml.Expected behaviour
lading bump <version>is run, the tool should also update versionentries for workspace crates in
[workspace.dependencies](and, ideally,workspace.dev-dependencies/workspace.build-dependencies).Proposed approach
workspace.dependencies(and the dev/build variants).crate-level dependency sections.
Optional configuration
If desired, this could be gated behind a config flag, but defaulting to “on”
would match expectations for workspace-managed dependency versions.