Skip to content

Set stable toolchain, MSRV 1.85, edition 2024#159

Closed
HDauven wants to merge 3 commits intomainfrom
stabilize
Closed

Set stable toolchain, MSRV 1.85, edition 2024#159
HDauven wants to merge 3 commits intomainfrom
stabilize

Conversation

@HDauven
Copy link
Member

@HDauven HDauven commented Jan 24, 2026

This pull request:

  • Set the Minimum Supported Rust Version (MSRV) to 1.85
  • Updates the Rust edition to 2024
  • Set the toolchain channel to stable instead of a specific nightly version
  • Replaces konst dependency with standard library equivalent function

This commit fixes any clippy issues related to the MSRV 1.85, as
well as the move to the stable toolchain. Due to support for usize
from string in constant context, the konst dependency is no longer
needed.
@HDauven HDauven requested a review from Copilot January 24, 2026 13:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project to use Rust stable instead of a nightly version from 2023, requiring migration away from unstable APIs to their stabilized equivalents.

Changes:

  • Migrated from Rust nightly (2023-05-22) to stable with edition 2021 and minimum Rust version 1.85
  • Replaced unstable APIs with their stabilized versions (e.g., io::Error::other, is_some_and, inspect)
  • Removed the konst dependency in favor of const-compatible standard library alternatives

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rust-toolchain.toml Updated Rust toolchain from nightly-2023-05-22 to stable
Cargo.toml Updated edition to 2021, added rust-version 1.85, removed konst dependency
src/lib.rs Replaced konst::primitive::parse_usize with usize::from_str_radix
src/transport/sockets.rs Replaced io::Error::new with io::Error::other
src/transport/encoding/raptorq/decoder.rs Replaced io::Error::new with io::Error::other and map with inspect
src/kbucket/key.rs Replaced io::Error::new with io::Error::other and map_or with is_some_and
src/kbucket/bucket.rs Added lifetime parameter to InsertOk, replaced map_or and map with is_some_and and inspect
src/kbucket.rs Added lifetime parameter to InsertOk, removed unused BinaryNonce export, replaced map_or with is_some_and, removed redundant return
src/encoding/message.rs Replaced io::Error::new with io::Error::other, removed unused ErrorKind import
src/encoding/header.rs Replaced io::Error::new with io::Error::other, removed unused ErrorKind import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Jan 24, 2026

@HDauven I've opened a new pull request, #160, to work on those changes. Once the pull request is ready, I'll request review from you.

@HDauven HDauven changed the title Stabilize Set stable toolchain, MSRV 1.85, edition 2024 Jan 25, 2026
@HDauven HDauven requested a review from herr-seppia January 25, 2026 00:44
@HDauven HDauven requested a review from herr-seppia February 2, 2026 09:25
@moCello
Copy link
Member

moCello commented Feb 6, 2026

This PR is replaced by #161 and #162

@moCello moCello closed this Feb 6, 2026
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.

5 participants