mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 10:45:37 +00:00
30 lines
714 B
Plaintext
30 lines
714 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cargo msrv
|
|
|
|
> Manage the Minimum Supported Rust Version (MSRV) of a project.
|
|
> More information: <https://gribnau.dev/cargo-msrv/>.
|
|
|
|
- Display the MSRVs of dependencies (as specified in their `Cargo.toml`):
|
|
|
|
`cargo msrv list`
|
|
|
|
- Find the MSRV of the project by trying to compile it with various toolchains:
|
|
|
|
`cargo msrv find`
|
|
|
|
- Show the MSRV of the project as specified in `Cargo.toml`:
|
|
|
|
`cargo msrv show`
|
|
|
|
- Set the MSRV in `Cargo.toml` to a given Rust version:
|
|
|
|
`cargo msrv set {{version}}`
|
|
|
|
- Verify whether the MSRV is satisfiable by compiling the project using the specified version of Rust:
|
|
|
|
`cargo msrv verify`
|