Skip to content

chore: declare the MSRV as Rust 1.88 - #103

Merged
3Hren merged 1 commit into
mainfrom
chore/declare-msrv
Jul 13, 2026
Merged

chore: declare the MSRV as Rust 1.88#103
3Hren merged 1 commit into
mainfrom
chore/declare-msrv

Conversation

@3Hren

@3Hren 3Hren commented Jul 13, 2026

Copy link
Copy Markdown
Member

The crate never stated a minimum toolchain, so its real one drifted silently with whatever the code happened to use — until #102 it stood at 1.95, purely because of one core::hint::cold_path() call.

It is now declared as 1.88 and pinned in three places:

  • rust-version = "1.88" in the manifest, so cargo reports a clear error: rustc 1.87.0 is not supported by the following package instead of a spray of unstable-feature errors;
  • a CI job on exactly that toolchain, so the next newer-than-1.88 feature fails the pull request that introduces it;
  • the README, which states the policy — an MSRV bump is a minor version bump, never a patch one.

1.88 is what edition 2024 (1.85) plus let-chains (1.88) cost; nothing else in the library needs more. Verified in both directions: cargo +1.88.0 check --lib --locked passes, cargo +1.87.0 fails.

The CI job checks --lib only — tests and benches pull in criterion and proptest, which track their own, newer minimum toolchain.

The crate never stated a minimum toolchain, so its real one drifted silently
with whatever the code happened to use — until the previous commit it stood at
1.95, purely because of one `core::hint::cold_path()` call.

It is now declared as 1.88 and pinned in three places: `rust-version` in the
manifest, so cargo reports a clear "requires rustc 1.88" instead of a spray of
unstable-feature errors; a CI job on exactly that toolchain, so the next
newer-than-1.88 feature fails the pull request that introduces it; and the
README, which states the policy — an MSRV bump is a minor version bump, never
a patch one.

1.88 is what edition 2024 plus let-chains cost; nothing in the library needs
more. The CI job checks `--lib` only: tests and benches pull in criterion and
proptest, which track their own, newer minimum toolchain.
@3Hren
3Hren merged commit c4d93d9 into main Jul 13, 2026
6 checks passed
@3Hren 3Hren mentioned this pull request Jul 13, 2026
@3Hren
3Hren deleted the chore/declare-msrv branch July 14, 2026 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant