Skip to content

chore: upgrade to Rust edition 2024#58

Merged
r-near merged 2 commits intomainfrom
chore/rust-edition-2024
Feb 10, 2026
Merged

chore: upgrade to Rust edition 2024#58
r-near merged 2 commits intomainfrom
chore/rust-edition-2024

Conversation

@r-near
Copy link
Copy Markdown
Contributor

@r-near r-near commented Feb 5, 2026

Updates the crate to Rust edition 2024 with resolver v3.

Copilot AI review requested due to automatic review settings February 5, 2026 21:38
@r-near r-near requested a review from a team as a code owner February 5, 2026 21:38
Copy link
Copy Markdown

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 pull request upgrades the near-account-id crate from Rust edition 2021 to edition 2024, with resolver version 3. The upgrade addresses the breaking change in Rust edition 2024 where gen became a reserved keyword for generator functions.

Changes:

  • Updated Cargo.toml to use edition 2024 and resolver v3
  • Escaped gen module references in schemars_v0_8 imports using r#gen syntax to comply with edition 2024 keyword restrictions

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
Cargo.toml Updates edition from 2021 to 2024 and sets resolver to version 3
src/account_id.rs Escapes gen module name in schemars_v0_8::gen::SchemaGenerator using r#gen syntax
src/account_id_ref.rs Escapes gen module name in schemars_v0_8::gen::SchemaGenerator using r#gen syntax

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

@r-near r-near merged commit 6f72959 into main Feb 10, 2026
4 checks passed
@r-near r-near deleted the chore/rust-edition-2024 branch February 10, 2026 21:08
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.

3 participants