logo
  • Search
  • Reddit Posts 🔥
  • Archive
  • GitHub

Daily reminder to set MSRV for your project or library!

50 points synalice 2025-06-28 18:53:57 9 comments
View on Reddit ↗

Since v1.56 Cargo supports pinning Minimum Supported Rust Version in your Cargo.toml:

[package]
rust-version = "1.56"

This makes it easier to use your library in an environment with an older Rust version.

See https://doc.rust-lang.org/cargo/reference/rust-version.html.

And you can find this value automatically via https://github.com/foresterre/cargo-msrv.

© 2025 Query.rs, built by Folyd with ❤️❤️, see about page to learn more · meiguo.app · aiberm.com