[workspace]
members = ["wscrate"]
[workspace.dependencies]
rand = "0.7"
wscrate/Cargo.toml:
[package]
name = "wscrate"
edition = "2024"
[dependencies]
rand.workspace = true
Prints:
With --verbose it does hint why "warning: ignoring rand, source is workspace", but I didn't run it with --verbose, because reporting "latest" was falsely reassuring that the dependency was found correctly and the version has been checked.
It'd be better to report something like:
workspace dependencies are not supported: rand
or even better, actually upgrade [workspace.dependencies].
cargo-edit-upgrade 0.13.1