cargo-msrv set

COMMAND

  • Standalone: cargo-msrv set
  • Through Cargo: cargo msrv set

PREVIEW

asciicast

DESCRIPTION

Set the MSRV in the Cargo manifest.

This is either the package.rust-version field or the package.metadata.msrv field in the Cargo manifest ( Cargo.toml).

EXAMPLES

  1. Set an MSRV by providing a two component Rust version
cargo msrv set 1.56
  1. Set an MSRV by providing a three component Rust version
cargo msrv set 1.58.1