Skip to main content

MSRV

Constant MSRV 

Source
pub const MSRV: &str = "1.83";
Expand description

Minimum supported Rust version of this crate.

Pinned to track uor-foundation’s effective MSRV so the dependency graph never imposes a tighter requirement on consumers than the substrate itself. Bumping this constant requires bumping the workspace rust-version and the rust-toolchain.toml channel in lockstep.

§See also

§Constraints

  • TC-04 — bilateral compile-time enforcement assumes a single, declared toolchain version on both sides of the contract

§Behavior

// Given: the MSRV constant
// When:  parsed into its semver components
// Then:  it is at least 1.83 and uses the major.minor form
let parts: Vec<&str> = prism::MSRV.split('.').collect();
assert_eq!(parts.len(), 2);
let major: u32 = parts[0].parse().expect("major version is numeric");
let minor: u32 = parts[1].parse().expect("minor version is numeric");
assert!((major, minor) >= (1, 83));