You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo msrv verifyFetching indexUnable to find key 'package.rust-version' (or 'package.metadata.msrv') in '/path/to/top-level/Cargo.toml'
I can certainly do this as a workaround:
cargo msrv --path a verify
cargo msrv --path b verify
... or cd/pushd my way into the workspace members, but this gets annoying, especially considering:
this example only has 2 workspace members, consider having a lot more members
the expectation that all cargo commands respect workspace members, at the least with a --workspace or the deprecated --all flag
verification in CI, it's not possible to have a simple cargo msrv verify snippet that can be copy-pasted to other projects, because you'd have to manually edit the snippet and explicitly use --path member for all you want to check
The text was updated successfully, but these errors were encountered:
by default, check all workspace members, not only when there is a virtual workspace
add a short -p variant to --path to mimic other cargo commands, likely even rename --path to --package (for full mimicry) and add --path as an alias for compatibility
add --workspace to force/override -p|--package|--path, these should override each other as they do in other cargo commands
add a short -p variant to --path to mimic other cargo commands, likely even rename --path to --package (for full mimicry) and add --path as an alias for compatibility
While -p would be better indeed, a cargo like alternative to --path exists: --manifest-path <Cargo.toml>
top-level
Cargo.toml
:running
cargo msrv verify
in top-level dir:I can certainly do this as a workaround:
... or
cd
/pushd
my way into the workspace members, but this gets annoying, especially considering:cargo
commands respect workspace members, at the least with a--workspace
or the deprecated--all
flagcargo msrv verify
snippet that can be copy-pasted to other projects, because you'd have to manually edit the snippet and explicitly use--path member
for all you want to checkThe text was updated successfully, but these errors were encountered: