Skip to content

deps: lower the ruint floor to 1.17.1 - #1006

Open
citizen-stig wants to merge 1 commit into
thrumdev:masterfrom
citizen-stig:nikolai/ruint-floor-1-17
Open

citizen-stig wants to merge 1 commit into
thrumdev:masterfrom
citizen-stig:nikolai/ruint-floor-1-17

Conversation

@citizen-stig

@citizen-stig citizen-stig commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

nomt-core cannot currently be built for Solana SBF. ruint 1.18 and later declare rust-version = 1.90, but every Solana platform-tools release up to v1.56 ships rustc 1.89, and the workspace requires ruint ^1.21.

This lowers the requirement to 1.17.1. Cargo.lock stays on 1.21.1, so nomt's own builds don't change. Downstream crates can resolve to 1.17.x when their toolchain needs it.

Security:

  • 1.17.1 is the oldest release with the reciprocal_mg10 soundness fix (RUSTSEC-2025-0137).
  • RUSTSEC-2026-0220, fixed in 1.20, is about wrong overflow flags on checked/overflowing/saturating/wrapping shifts; the shifted values are correct. nomt only uses plain <<= / >>= in core/src/page_id.rs and never reads those flags.

Verification:

  • cargo test -p nomt-core with ruint pinned to 1.17.2: 39 passed.
  • cargo check --workspace --all-targets with ruint 1.17.2: OK.
  • A copy of nomt-core with this floor compiles for sbpf-solana-solana with platform-tools v1.53 (rustc 1.89). I didn't link or deploy a program, or measure compute units.
  • The nomt crate's tests were not run against 1.17.2.

🤖 Generated with Claude Code

ruint 1.18 and later declare rust-version 1.90. Solana platform-tools
(up to v1.56) ship rustc 1.89, so nomt-core cannot be built for SBF
with the 1.21 floor. 1.17.1 is the oldest release with the
reciprocal_mg10 soundness fix (RUSTSEC-2025-0137). The shift-flag
advisory fixed in 1.20 (RUSTSEC-2026-0220) only affects the overflow
flags of checked/overflowing shifts, which nomt does not use.

Cargo.lock stays on 1.21.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@citizen-stig
citizen-stig marked this pull request as ready for review November 26, 2026 08:40
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