Skip to content

Support Rust 1.85 as the MSRV - #255

Merged
dspicher merged 1 commit into
dspicher:masterfrom
thesimplekid:msrv_1_85
Jul 27, 2026
Merged

dspicher merged 1 commit into
dspicher:masterfrom
thesimplekid:msrv_1_85

Conversation

@thesimplekid

Copy link
Copy Markdown
Contributor

I would like to use ur 0.5 in a project whose MSRV is Rust 1.85. The current implementation uses a few APIs that are not available as stable APIs on that toolchain.

This PR:

  • Declares Rust 1.85 as the crate’s MSRV.
  • Replaces usize::is_multiple_of with an equivalent modulo check.
  • Caches the encoder fragment count so the existing public const accessors remain const on Rust 1.85.
  • Adds an MSRV CI job covering the library with default features and with no_std.

Replace APIs that are not stable in Rust 1.85 while preserving the public
const encoder accessors by caching the fragment count.

Declare the minimum toolchain in Cargo.toml and add CI checks for the
default and no-std library configurations.
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (936baef) to head (2c80487).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #255   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1266      1275    +9     
=========================================
+ Hits          1266      1275    +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dspicher

Copy link
Copy Markdown
Owner

Thanks for the PR!

@dspicher
dspicher merged commit b1e31db into dspicher:master Jul 27, 2026
9 checks passed
@thesimplekid
thesimplekid deleted the msrv_1_85 branch July 27, 2026 21:48
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.

2 participants