Skip to content

Consider migrating from nightly Rust toolchain to stable #62

Description

@coderabbitai

Issue Description

The project currently uses a pinned nightly Rust toolchain (nightly-2025-07-22) primarily due to the usage of the doc_cfg feature in documentation.

Current State

  • rust-toolchain.toml pins to nightly channel
  • docs/rust-doctest-dry-guide.md:486 uses #![feature(doc_cfg)] which is nightly-only

Potential Solutions

  1. Remove or isolate the doc_cfg feature so it doesn't run under cargo test --doc on stable
  2. Wrap the feature in conditional compilation to only use it when nightly is available
  3. Document the requirement explicitly in README and rust-toolchain.toml if nightly is necessary

Benefits of Migration

  • Lower maintenance overhead (stable releases have less churn)
  • Better compatibility with downstream users
  • More predictable build environment

Context

This issue was identified during PR review when adding llvm-tools-preview component for coverage testing.

Related:

Metadata

Metadata

Assignees

Labels

mediumCould be disruptive, but might not happen

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions