Repository navigation
chore: raise MSRV to Rust 1.100 and use newly stabilized APIs - #149
Open
KonradHoeffner wants to merge 1 commit into
Open
KonradHoeffner wants to merge 1 commit into
KonradHoeffner wants to merge 1 commit into
Conversation
📊 Code Metrics (Rust)
|
- rust-version 1.89 -> 1.100 (Rust 1.100.0, released 2026-11-12) - use the newly stable integer bit_width() instead of the BITS - leading_zeros() emulation in sequence.rs - fix stale Infallible comment in hdt_graph.rs: Infallible is now a type alias to the stabilized never type - add an MSRV job to the test workflow so the declared minimum is actually verified
Owner
Author
|
Not worth it yet, no performance increase and risk of breakage for library users. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by OpenCode
Summary
Rust 1.100.0 was released today (2026-11-12), so this is the scheduled post-release checkup that raises the declared MSRV from 1.89 to the current stable and applies what became possible:
rust-version1.89 → 1.100 inCargo.toml.src/containers/sequence.rs: use the stablebit_width()instead of theBITS - leading_zeros()emulation (one spot carried a// nightly onlycomment, the other was unannotated; identical semantics, including 0).src/hdt_graph.rs: fix the staletype Error = Infallible; // infallible for now, figure out what to put here latercomment —Infallibleis now a type alias to!since the never type was stabilized in 1.100. No code change needed: sophia'sGraph::Errorbound (Error + Send + Sync + 'static) is still satisfied, andInfallibleand!are now the same type anyway.msrvjob tolint_and_test.ymlthat builds and tests with exactly Rust 1.100.0 (viadtolnay/rust-toolchain@1.100.0), so the declared minimum is actually verified instead of just being documentation.Not done in this PR (follow-up candidates)
String::from_utf8_lossy_owned(1.99) incontrol_info.rs: would avoid a double copy, but needs restructuring because the lossy string is used twice — skipped as not worth the churn.std::alloc::Allocatorwas stabilized in 1.100, which unblocks Rust 1.100.0 custom allocator optimizations? #139 (custom allocators for huge transient arrays) — that needs benchmarking first and deserves its own PR.cargo::unused_dependencieslint: can be wired into[lints.cargo]in a later PR once the 1.100 toolchain is widely available.Verification
cargo fmt --check,cargo clippy --no-deps --all-features --all-targets(only the pre-existing pedantic warnings:sparql.rs:132 w3c_tests too_many_lines,hdt.rs:409 items_after_statements,benches/criterion.rs:105 redundant_closure)cargo test --all-features: 27 unit + 19 doc tests pass--no-default-features,--no-default-features --features sophia,--no-default-features --features cache,--all-targets --features cacheNote: the rustup dist server had not propagated the 1.100.0 artifacts yet when this was verified locally (releases.rs already lists 1.100.0 as released today), so local verification ran on nightly 1.102 (which satisfies the declared 1.100). The
msrvCI job will confirm the exact toolchain once the CDN has caught up.