This Month in Rust OSDev: November 2024
Welcome to a new issue of "This Month in Rust OSDev". In these posts, we give a regular overview of notable changes in the Rust operating system development ecosystem.
This series is openly developed on GitHub. Feel free to open pull requests there with content you would like to see in the next issue. If you find some issues on this page, please report them by creating an issue or using our comment form at the bottom of this page.
Announcements, News, and Blog Posts
Here we collect news, blog posts, etc. related to OS development in Rust.
- VEKOS, a cryptographically verified hobby OS written in Rust
- Rust in Production: Oxide Computer Company with Steve Klabnik (Podcast Interview)
- This Month in Redox - November 2024
- ‘Tis the Season for COSMIC Alpha 4!
- a #![no_std], #![no_main], no-[#tokio] runtime for AWS Lambda
- Ferrocene 24.11.0 released with medical qualification (reddit discussion)
- Embive: A low-level sandboxing library for RISC-V bytecode
- Rust in QEMU roadmap
- kartoffels, a game where you implement a firmware for a potato, v0.6 released! 🥔
Infrastructure and Tooling
In this section, we collect recent updates to rustc
, cargo
, and other tooling that are relevant to Rust OS development.
- mark some target features as 'forbidden' so they cannot be (un)set with
-Ctarget-feature
- show
abi_unsupported_vector_types
lint in future breakage reports - Stabilize
extended_varargs_abi_support
rust-osdev
Projects
In this section, we give an overview of notable changes to the projects hosted under the rust-osdev
organization.
x86_64
Maintained by @phil-opp, @josephlr, and @Freax13
The x86_64
crate provides various abstractions for x86_64
systems, including wrappers for CPU instructions, access to processor-specific registers, and abstraction types for architecture-specific structures such as page tables and descriptor tables.
We merged the following PRs this month:
- fix field order for INVPCID descriptor
- fix CI job for building on MSRV
- gate HandlerFunc behind target_arch = "x86{_64}"
- fix typo in "InvPicdCommand"
- TryFrom implementation for ExceptionVector
- Typo fix in TaskStateSegment comment
- Minor clarification DescriptorTablePointer::limit comment
- fix signature of Step::steps_between implementations
- release 0.15.2
- backport #513
Thanks to @mrjbom for their contribution!
acpi
Maintained by @IsaacWoods
The acpi
repository contains crates for parsing the ACPI tables – data structures that the firmware of modern computers use to relay information about the hardware to the OS. We merged the following changes this month:
- Implement the multiprocessor wakeup mechanism.
- acpi-dumper: fix invocation of compile_error!
- aml: make resource descriptor fields public
- acpi: fix clippy warnings and run clippy in CI
- acpi: fix doc warnings and add missing links
- acpi: spcr: fix typo
Thanks to @pjhades, @00xc, and @Hsy-Intel for their contributions!
bootloader
Maintained by @phil-opp and @Freax13
The bootloader
crate implements a custom Rust-based bootloader for easy loading of 64-bit ELF executables. This month, we merged the following improvements:
- Remove 3dnow features from stage4 target
- mention E820 in docs for UnknownBios
- release v0.11.8
- copy more PML4 entries
- Convert LF to CRLF when writing to serial port
- Update x86_64
- release v0.11.9
Thanks to @Ollrogge, @ChocolateLoverRaj, and @Makonede for their contributions!
uefi-rs
Maintained by @GabrielMajeri, @nicholasbishop, and @phip1611
uefi
makes it easy to develop Rust software that leverages safe, convenient,
and performant abstractions for UEFI functionality.
We merged the following PRs this month:
- chore(config): migrate renovate config
- uefi: Deny clippy::ref_as_ptr
- Move the UnicodeCollation protocol definition to
uefi-raw
and use it fromuefi
- Use ovmf-prebuilt
- xtask: Update OVMF prebuilts
- uefi-raw: Drop unused dependency on ptr_meta
- Fix
cargo xtask fmt --check
- Fix minor typo in protocols.md
- Add TCG protocols to
uefi-raw
and use them fromuefi
- Mention to turn off secure boot.
- Clean up some use of unsafe in MemoryMapRefMut
Thanks to @diekmann for their contribution!
ovmf-prebuilt
Maintained by @nicholasbishop and @phil-opp
The ovmf-prebuilt
project provides pre-built edk2 releases to make it easier to set up OVMF. We merged the following improvement this month:
uart_16550
Maintained by @phil-opp
The uart_16550
crate provides basic support for serial port I/O for 16550-compatible UARTs. We merged the following change this month:
Thanks to @kouchekiniad for their contribution!
Other Projects
In this section, we describe updates to Rust OS projects that are not directly related to the rust-osdev
organization. Feel free to create a pull request with the updates of your OS project for the next post.
No projects were proposed for this section this month.
Join Us?
Are you interested in Rust-based operating system development? Our rust-osdev
organization is always open to new members and new projects. Just let us know if you want to join! A good way for getting in touch is our Zulip chat.