Skip to content

Migrate all crates to Rust edition 2024 - #33

Merged
chbaker0 merged 1 commit into
masterfrom
rust-2024-edition
Jul 23, 2026
Merged

Migrate all crates to Rust edition 2024#33
chbaker0 merged 1 commit into
masterfrom
rust-2024-edition

Conversation

@chbaker0

Copy link
Copy Markdown
Owner

Filed by an AI coding agent (Claude Code).

Summary

  • Bumps buildutil, init, loader, mkimage, and shared to edition 2024 (kernel/root Cargo.toml were already on it).
  • Fixes the two resulting breakages under 2024's stricter unsafe rules:
    • src/mm.rs: extern "C" { ... } block → unsafe extern "C" { ... }
    • src/kmain.rs and init/src/main.rs: #[export_name = "_start"]#[unsafe(export_name = "_start")]

Test plan

  • cargo kcheck / cargo icheck / cargo lcheck / cargo scheck all pass
  • cargo stest — all 54 tests + doctest pass
  • buildutil/mkimage (host crates) compile clean
  • Full ./make-image.sh build + headless QEMU boot reaches kernel_main, runs threads/allocator, and exits cleanly — matches expected debugcon sequence

Bumps buildutil, init, loader, mkimage, and shared to edition 2024
(kernel and root Cargo.toml were already on it). Fixes the two
resulting breakages: unsafe extern blocks and unsafe attributes.
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