mirror of
https://github.com/rust-lang/cargo
synced 2024-10-12 18:52:29 +00:00
f797978283
refactor: Pull out cargo-add MSRV code for reuse ### What does this PR try to resolve? #12078 added MSRV code in `cargo add`. Our assumption when writing it is that we'd need to generalize the code before reusing it in other places, like `cargo install`. This PR focused purely on that refactor because I'm hopeful it will be useful for other work I'm doing. Despite not having a user for this yet, I think the `cargo install` case is inevitable and I feel this does a bit to clean up MSRV related code by using a more specific type everywhere. ### How should we test and review this PR? Each commit gradually progresses things along |
||
---|---|---|
.. | ||
cargo-platform | ||
cargo-test-macro | ||
cargo-test-support | ||
cargo-util | ||
crates-io | ||
home | ||
mdman | ||
resolver-tests | ||
semver-check | ||
xtask-build-man | ||
xtask-bump-check | ||
xtask-stale-label |