This Month in Rust OSDev (June 2020)
Welcome to a new issue of "This Month in Rust OSDev". In these posts, we will 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.
In this section, we give an overview of notable changes to the projects hosted under 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.
In June, the crate received some smaller improvements:
- Remove needless
try_intocalls to fix clippy warnings
- Correct Cr2::read documentation
cargo-xbuild project provides
cargo command wrappers to cross-compile the sysroot crates
alloc. This month, support for the
cargo-features manifest key was added and a deprecated dependency was replaced:
cargo-featuresfrom project's Cargo.toml (published as
- Replace tempdir with tempfile (published as
bootloader crate implements a custom Rust-based bootloader for easy loading of 64-bit ELF executables. This month, we fixed a newly introduced Rust warning:
_improper_ctypes_checkfunctions (published as
Thanks to @Freax13 for this contribution!
While we do not have to report any news yet, we are still working on a rewrite of the crate in order to make it more robust (use Rust instead of assembly for boot stages) and composable (in order to add UEFI and multiboot2 support).
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. This month, the crate received two small improvements to the RSDP-related code:
uefi crate provides abstractions for the
UEFI standard that replaces the traditional BIOS on modern systems. This month, the contribution docs were extended with information how to add new UEFI protocols:
In this section, we describe updates to personal 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.
(Section written by @phil-opp)
In June, I pushed two small improvements to the
blog_os repository and the Writing an OS in Rust blog:
- Create a testable trait for printing test messages automatically. This required updates to some blog posts:
- Do a volatile read in stack_overflow test to avoid tail recursion. This required an update to the Double Faults post:
There were also lots of small contributions this month that fixed typos and dead links and updated the Chinese translation. Thanks a lot to all contributors!
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 gitter channel.