Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Dec 28, 2025

Summary

This PR migrates the Rust codebase from nightly-2022-08-22 to the latest stable Rust toolchain.

Changes

  • Remove unstable feature flags (#![feature(step_trait)] and #![feature(trait_alias)])
  • BREAKING: Remove Step trait bound from LinkType trait (required for stable Rust)
  • Update Rust edition from 2018 to 2021
  • Update rust-toolchain.toml from nightly-2022-08-22 to stable
  • Update num-traits dependency from 0.2.14 to 0.2.19
  • Set minimum Rust version (MSRV) to 1.70
  • Update CI workflow to use dtolnay/rust-toolchain@stable

Breaking Change

The LinkType trait no longer requires the Step bound. This is necessary because std::iter::Step remains unstable in Rust (tracked in rust-lang/rust#42168).

If any downstream code relies on iterating over ranges of LinkType values directly, it will need to be updated.

Testing

  • All 67 existing tests pass
  • Code compiles and runs on stable Rust (1.92.0)
  • Formatting checks pass

Test plan

  • Run cargo build with stable toolchain
  • Run cargo test - all 67 tests pass
  • Run cargo fmt --check - formatting is correct
  • CI pipeline passes on GitHub Actions

Fixes #125

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #125
@konard konard self-assigned this Dec 28, 2025
- Remove unstable feature flags (#![feature(step_trait)] and #![feature(trait_alias)])
- Remove Step trait bound from LinkType (required for stable Rust - Step is still unstable)
- Update Rust edition from 2018 to 2021
- Update rust-toolchain.toml from nightly-2022-08-22 to stable
- Update num-traits dependency from 0.2.14 to 0.2.19
- Set minimum Rust version (MSRV) to 1.70
- Update CI workflow to use dtolnay/rust-toolchain@stable

BREAKING CHANGE: LinkType trait no longer requires Step bound. This is
necessary because std::iter::Step remains unstable (rust-lang/rust#42168).

Fixes #125

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Migrate rust version of code to latest stable Rust toolchain Migrate Rust code to latest stable toolchain Dec 28, 2025
@konard konard marked this pull request as ready for review December 28, 2025 04:32
@konard
Copy link
Member Author

konard commented Dec 28, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $3.791714 USD
  • Calculated by Anthropic: $2.730117 USD
  • Difference: $-1.061597 (-28.00%)
    📎 Log file uploaded as GitHub Gist (541KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit c2dfaf7 into main Dec 28, 2025
10 of 11 checks passed
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.

Migrate rust version of code to latest stable Rust toolchain

2 participants