Skip to content

feat: migrate to Rust Edition 2024 and latest stable toolchain - #7

Merged
kk376 merged 3 commits into
mainfrom
feat/edition-2024
Nov 13, 2026
Merged

kk376 merged 3 commits into
mainfrom
feat/edition-2024

Conversation

@kk376

@kk376 kk376 commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates kkfetch to Rust Edition 2024 with updated MSRV (1.85.0+), modern C-string literal syntax, and Style Edition 2024 formatting.

Key Changes

  • Edition & MSRV: Bumped edition = "2024" and rust-version = "1.85.0" in Cargo.toml.
  • Toolchain Components: Pinned rustfmt and clippy components in rust-toolchain.toml.
  • Modernized C-String: Updated b"/dev/tty\0".as_ptr() to c"/dev/tty".as_ptr() in src/context.rs, eliminating manual null-terminated byte slice creation under Rust 1.77+.
  • Formatting: Applied cargo fmt conforming to Rust Style Edition 2024 across all modules.
  • Documentation: Updated README.md, docs/architecture.md, and docs/review.md references to Edition 2024.
  • Dependencies: Bumped compatible patch versions in Cargo.lock.

Verification

  • cargo fmt --check: Clean (0 diffs).
  • cargo clippy --all-targets -- -D warnings: Clean (0 warnings).
  • cargo test --all-targets: All 286 tests passed cleanly.
  • cargo build --release --bin kkfetch: Built and verified release binary (kkfetch --version, kkfetch --help).
  • check_no_secrets.py: Clean (0 credentials).

- Bump edition to 2024 and MSRV to 1.85.0 in Cargo.toml
- Add rustfmt and clippy components in rust-toolchain.toml
- Modernize null-terminated string to C-string literal c"/dev/tty"
- Apply Style Edition 2024 formatting across modules
- Update documentation in README, architecture.md, and review.md
- Refresh Cargo.lock dependencies
@kk376
kk376 merged commit fdb650d into main Nov 13, 2026
13 of 14 checks passed
@kk376
kk376 deleted the feat/edition-2024 branch November 13, 2026 16:19
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.

1 participant