Skip to content

Move crate versioning to top-level Cargo.toml #4105

Open
@jbencin

Description

@jbencin

Recently I tried updating wsts and found that it failed to compile if not all workspace members used the same version of the crate. I fixed it by setting a common version for all workspace members in the top-level Cargo.toml file:

[workspace.dependencies]  
wsts = "5.0"

And in the workspace member Cargo.toml files:

[dependencies]
wsts = {workspace = true}

There are several crates that are used in multiple workspace members, and using different versions of them could lead to build or runtime errors. Most (all?) of these crates should be moved to the [workspace.dependencies] section

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Status: 🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions