HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cargo msrv — Manage the Minimum Supported Rust Version (MSRV) of a project. More information: <https://gribnau.de

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandcargo msrvrustminimumsupportedclimanage

Problem

How to use the cargo msrv command: Manage the Minimum Supported Rust Version (MSRV) of a project. More information: <https://gribnau.dev/cargo-msrv/>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/cargo msrv

Revisions (0)

No revisions yet.