Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subcommand: cargo msrv install-toolchain #665

Open
foresterre opened this issue Apr 12, 2023 · 0 comments
Open

Add subcommand: cargo msrv install-toolchain #665

foresterre opened this issue Apr 12, 2023 · 0 comments

Comments

@foresterre
Copy link
Owner

foresterre commented Apr 12, 2023

  • Which resolves the MSRV via the usual route, i.e. --rust-version > package.rust-version in Cargo.toml > package.metadata.msrv
    • error: if no msrv defined
  • Installs the toolchain with rustup
    • error: if rustup not installed
    • error: unable to install
    • ok: already present
    • ok: installed toolchain

Convenience command, to be used with github actions workflow.

Use case:

  • In a workflow, install rustup without any other components
  • Run cargo msrv install-toolchain
  • Run whatever command next, e.g. cargo (opt. since only toolchain present: +) test or cargo msrv verify

Possible next steps:

  • Add shorthands to test cargo msrv test [args...] runs cargo +<msrv> test [args...]
  • similar: build, check, generate-lockfile ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant