This Month in Rust OSDev: May 2023
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.
Infrastructure and Tooling
In this section, we collect recent updates to rustc
, cargo
, and other tooling that are relevant to Rust OS development.
No updates were proposed for this section this month.
Announcements, News, and Blog Posts
Here we collect news, blog posts, etc. related to OS development in Rust.
- RTIC (The hardware accelerated Rust RTOS) releases v2.0.0!
- My Rust OS for microcontrollers now has a dir command
- First Rust Code Shows Up in the Windows 11 Kernel
- May Flowers Spring COSMIC Showers
- Ironclad-Shell: a "shell" made in rust and for OS classes
- This moment in
mnemos
- An update/introduction on the current state of
mnemos
, an async-first hobby OS
- An update/introduction on the current state of
rust-osdev
Projects
In this section, we give an overview of notable changes to the projects hosted under the rust-osdev
organization.
uefi-rs
Maintained by @GabrielMajeri, @nicholasbishop, and @phip1611
- uefi: Switch Rng repr from C to transparent
- uefi: Make MEMORY_DESCRIPTOR_VERSION an associated constant
- macros: allow to create empty cstr8/16 slices
- Add Revision to uefi-raw and use it from uefi
- Add Tpl to uefi-raw and use it from uefi
- Add PhysicalAddress/VirtualAddress to uefi-raw and use them from uefi
- cstr16: add method to get the underlying bytes
- Move various memory types to uefi-raw and re-export in uefi
- uefi/fs: add path and pathbuf abstraction
- uefi: Clear the Vec in DevicePathBuilder::with_vec
- uefi-macros: Restore entry macro tests
- Add LoadedImageDevicePath protocol
- fs: add new error type
- deps: bump bitflags from 1.0 to 2.1
- uefi-macros: Fix entry macro with docstring
- fs: implement remove_dir_all
- uefi-raw: Drop dep on uefi-macros
- Disable some tests on aarch64
- allocator: Use appropriate memory types
- Release branch
- uefi: Rename FileSystemIOErrorContext to IoErrorContext
- uefi: Improve fs error Display impls, drop derive_more
- Move InterfaceType to uefi-raw
- uefi-raw: Add table Header struct
- build(deps): bump bitflags from 2.2.1 to 2.3.1
- Relax bitflags dep version to 2.0.0
- xtask: Drop an unused test file
- xtask: Improve QEMU boot time
- Move some runtime services types to uefi-raw
- Fix and enable uefi-raw unit/doc tests
- Add Time to uefi-raw and use it from uefi
- uefi-raw: Add Char8/Char16
- uefi: Fix use of tuples in pointer structs
- build(deps): bump clap from 4.2.7 to 4.3.0
- uefi(boot_services): add
install_configuration_table
- xtask: Add check-raw
- uefi-raw: Add Update Capsule types
- Download OVMF files rather than relying on distro package
- Export FileInfoCreationError
- Move EventType to uefi-raw
- uefi: Derive Eq for Handle
- Add
RuntimeServices
definition touefi-raw
and use it fromuefi
- loaded_image: Add set_unload
- uefi: Change file reading to read in 1 MiB chunks
Thanks to @RaitoBezarius and @medhefgo for their contributions!
multiboot2
Maintained by @IsaacWoods, @phip1611, @robert-w-gries, @ahmedcharles, and @Caduser2020
- add missing functionality in multiboot2-header (finding the header, getting tags)
- multiboot2: properly type DST tags
- Add BasicMemoryInfo and SMBIOS tags
- multiboot2: Add the end tag
Thanks to @YtvwlD for their contributions!
vga
Maintained by @RKennedy9064
Thanks to @tsatke for their contribution!
ovmf-prebuilt
Maintained by @phil-opp
Thanks to @nicholasbishop for this contribution!
acpi
Maintained by @IsaacWoods
- rsdp: Make whole RSDP readable
- Clean up allocator_api feature
- acpi: fix length of "extended_area_bytes" in RSDP search
Thanks to @YtvwlD, @semiviral, and @A0lson for their contributions!
pci_types
Maintained by @IsaacWoods
Thanks to @stlankes for their contributions!
bootloader
Maintained by @phil-opp
Thanks to @mgr0dzicki for their contributions!
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.
phil-opp/blog_os
(Section written by @phil-opp)
We merged the following changes to the Writing an OS in Rust blog this month:
- Fix panics caused by misaligned pointer dereferences in "Double Faults" & "Introduction to Paging"
- Correcting typos and errors in French translation of Post 1
- posts/06-double-faults/index: fixup deprecated fn
Thanks to @SPuntte, @Firenezz, and @twilfredo for these contributions!
There wasn't much progress on the upcoming third edition this month, as I've been on vacation for the past few weeks. I still have a lot of catching up to do, but I'll try my best to continue writing soon :).
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.