|
| 1 | ++++ |
| 2 | +title = "This Month in Rust OSDev: October 2024" |
| 3 | +date = 2024-11-14 |
| 4 | + |
| 5 | +[extra] |
| 6 | +month = "October 2024" |
| 7 | +editors = ["phil-opp"] |
| 8 | ++++ |
| 9 | + |
| 10 | +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. |
| 11 | + |
| 12 | +<!-- more --> |
| 13 | + |
| 14 | +This series is openly developed [on GitHub](https://github.com/rust-osdev/homepage/). 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](https://github.com/rust-osdev/homepage/issues/new) or using our <a href="#comment-form">_comment form_</a> at the bottom of this page. |
| 15 | + |
| 16 | +<!-- |
| 17 | + This is a draft for the upcoming "This Month in Rust OSDev (October 2024)" post. |
| 18 | + Feel free to create pull requests against the `next` branch to add your |
| 19 | + content here. |
| 20 | + Please take a look at the past posts on https://rust-osdev.com/ to see the |
| 21 | + general structure of these posts. |
| 22 | +--> |
| 23 | + |
| 24 | +## Announcements, News, and Blog Posts |
| 25 | + |
| 26 | +Here we collect news, blog posts, etc. related to OS development in Rust. |
| 27 | + |
| 28 | +<!-- |
| 29 | +Please follow this template: |
| 30 | +
|
| 31 | +- [Title](https://example.com) |
| 32 | + - (optional) Some additional context |
| 33 | +--> |
| 34 | + |
| 35 | +- [This Month in Redox - October 2024](https://www.redox-os.org/news/this-month-241031/) |
| 36 | +- [Smart pointers for the kernel](https://lwn.net/Articles/992055/) |
| 37 | +- [On Rust in enterprise kernels](https://lwn.net/Articles/993337/) |
| 38 | +- [Unsafe Rust Is Harder Than C](https://chadaustin.me/2024/10/intrusive-linked-list-in-rust/) |
| 39 | +- [Version `v2.0.0` of `thiserror` released with `no_std` support](https://github.com/dtolnay/thiserror/releases/tag/2.0.0) |
| 40 | + |
| 41 | +## Infrastructure and Tooling |
| 42 | + |
| 43 | +In this section, we collect recent updates to `rustc`, `cargo`, and other tooling that are relevant to Rust OS development. |
| 44 | + |
| 45 | +<!-- |
| 46 | + Please use the following template: |
| 47 | +
|
| 48 | +- [Title](https://example.com) |
| 49 | + - (optional) Some additional context |
| 50 | +--> |
| 51 | + |
| 52 | +- [Taking a raw ref (`&raw (const|mut)`) of a deref of pointer (`*ptr`) is always safe](https://github.com/rust-lang/rust/pull/129248) |
| 53 | +- [mark some target features as 'forbidden' so they cannot be (un)set with `-Ctarget-feature`](https://github.com/rust-lang/rust/pull/129884) |
| 54 | +- [make `unsupported_calling_conventions` a hard error](https://github.com/rust-lang/rust/pull/129935) |
| 55 | + |
| 56 | + |
| 57 | +## `rust-osdev` Projects |
| 58 | + |
| 59 | +In this section, we give an overview of notable changes to the projects hosted under the [`rust-osdev`](https://github.com/rust-osdev/about) organization. |
| 60 | + |
| 61 | +<!-- |
| 62 | + Please use the following template: |
| 63 | +
|
| 64 | + ### [`repo_name`](https://github.com/rust-osdev/repo_name) |
| 65 | + <span class="maintainers">Maintained by [@maintainer_1](https://github.com/maintainer_1)</span> |
| 66 | +
|
| 67 | + The `repo_name` crate ...<<short introduction>>... |
| 68 | +
|
| 69 | + We merged the following changes this month: |
| 70 | + <<changelog, either in list or text form>> |
| 71 | +--> |
| 72 | + |
| 73 | +### [`uefi-rs`](https://github.com/rust-osdev/uefi-rs) |
| 74 | +<span class="maintainers">Maintained by [@GabrielMajeri](https://github.com/GabrielMajeri), [@nicholasbishop](https://github.com/nicholasbishop), and [@phip1611](https://github.com/phip1611)</span> |
| 75 | + |
| 76 | +`uefi` makes it easy to develop Rust software that leverages safe, convenient, |
| 77 | +and performant abstractions for UEFI functionality. |
| 78 | + |
| 79 | +We merged the following PRs this month: |
| 80 | + |
| 81 | +- [uefi-macros: Require that the entry function takes zero args](https://github.com/rust-osdev/uefi-rs/pull/1418) |
| 82 | +- [uefi: Delete the deprecated `uefi::table::{boot,system}` modules](https://github.com/rust-osdev/uefi-rs/pull/1417) |
| 83 | +- [uefi: Derive Eq/PartialEq for GptPartitionEntry](https://github.com/rust-osdev/uefi-rs/pull/1421) |
| 84 | +- [uefi: Add CStr16 conversions from slices with interior nuls](https://github.com/rust-osdev/uefi-rs/pull/1422) |
| 85 | +- [uefi: Improve the VariableKey type and iterator](https://github.com/rust-osdev/uefi-rs/pull/1424) |
| 86 | +- [Update timeline section of funcs_migration.md](https://github.com/rust-osdev/uefi-rs/pull/1429) |
| 87 | +- [xtask: Add action to generate a code coverage report](https://github.com/rust-osdev/uefi-rs/pull/1423) |
| 88 | +- [nix: add cargo-llvm-cov to nix shell + niv update](https://github.com/rust-osdev/uefi-rs/pull/1439) |
| 89 | +- [Codecov configuration updates](https://github.com/rust-osdev/uefi-rs/pull/1440) |
| 90 | +- [Move DeviceType and DeviceSubType enums to uefi-raw](https://github.com/rust-osdev/uefi-rs/pull/1442) |
| 91 | +- [Add device path node types to uefi-raw](https://github.com/rust-osdev/uefi-rs/pull/1445) |
| 92 | +- [release: uefi-raw-0.9.0, uefi-macros-0.17.0, uefi-0.33.0](https://github.com/rust-osdev/uefi-rs/pull/1446) |
| 93 | +- [Increase MSRV to 1.79](https://github.com/rust-osdev/uefi-rs/pull/1448) |
| 94 | + |
| 95 | +<!-- - [fix(deps): update rust crate clap to v4.5.19](https://github.com/rust-osdev/uefi-rs/pull/1408) --> |
| 96 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1427) --> |
| 97 | +<!-- - [chore(deps): update crate-ci/typos action to v1.25.0](https://github.com/rust-osdev/uefi-rs/pull/1425) --> |
| 98 | +<!-- - [chore(deps): update cachix/install-nix-action action to v30](https://github.com/rust-osdev/uefi-rs/pull/1428) --> |
| 99 | +<!-- - [chore(deps): update crate-ci/typos action to v1.26.0](https://github.com/rust-osdev/uefi-rs/pull/1432) --> |
| 100 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1433) --> |
| 101 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1434) --> |
| 102 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1437) --> |
| 103 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1444) --> |
| 104 | +<!-- - [chore(deps): update crate-ci/typos action to v1.26.8](https://github.com/rust-osdev/uefi-rs/pull/1449) --> |
| 105 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/uefi-rs/pull/1451) --> |
| 106 | +<!-- - [fix(deps): update rust crate fs-err to v3](https://github.com/rust-osdev/uefi-rs/pull/1452) --> |
| 107 | + |
| 108 | +### [`x86_64`](https://github.com/rust-osdev/x86_64) |
| 109 | +<span class="maintainers">Maintained by [@phil-opp](https://github.com/phil-opp), [@josephlr](https://github.com/orgs/rust-osdev/people/josephlr), and [@Freax13](https://github.com/orgs/rust-osdev/people/Freax13)</span> |
| 110 | + |
| 111 | +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. |
| 112 | + |
| 113 | +We merged the following PRs this month: |
| 114 | + |
| 115 | +- [Remove stabilized `const_mut_refs` feature](https://github.com/rust-osdev/x86_64/pull/501) |
| 116 | +- [Fix clippy warnings](https://github.com/rust-osdev/x86_64/pull/502) |
| 117 | + |
| 118 | + |
| 119 | +### [`pci_types`](https://github.com/rust-osdev/pci_types) |
| 120 | +<span class="maintainers">Maintained by [@IsaacWoods](https://github.com/IsaacWoods)</span> |
| 121 | + |
| 122 | +The `pci_types` library provides types for accessing and configuring PCI devices from Rust operating systems. We merged the following change this month: |
| 123 | + |
| 124 | +- [Add set bus number funcs](https://github.com/rust-osdev/pci_types/pull/36) |
| 125 | + |
| 126 | +Thanks to [@ZR233](https://github.com/ZR233) for their contributions! |
| 127 | + |
| 128 | + |
| 129 | +### [`ovmf-prebuilt`](https://github.com/rust-osdev/ovmf-prebuilt) |
| 130 | +<span class="maintainers">Maintained by [@nicholasbishop](https://github.com/nicholasbishop) and [@phil-opp](https://github.com/phil-opp)</span> |
| 131 | + |
| 132 | +The `ovmf-prebuilt` project provides pre-built [edk2](https://github.com/tianocore/edk2) releases to make it easier to set up OVMF. We merged the following improvement this month: |
| 133 | + |
| 134 | +- [Implement ovmf-prebuilt library](https://github.com/rust-osdev/ovmf-prebuilt/pull/92) |
| 135 | +- [Add release workflow](https://github.com/rust-osdev/ovmf-prebuilt/pull/93) |
| 136 | +- [release: 0.2.0](https://github.com/rust-osdev/ovmf-prebuilt/pull/96) |
| 137 | +- [release: 0.2.0 (take two)](https://github.com/rust-osdev/ovmf-prebuilt/pull/98) |
| 138 | + |
| 139 | + |
| 140 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/89) --> |
| 141 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/90) --> |
| 142 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/91) --> |
| 143 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/95) --> |
| 144 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/97) --> |
| 145 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/99) --> |
| 146 | +<!-- - [chore(deps): lock file maintenance](https://github.com/rust-osdev/ovmf-prebuilt/pull/100) --> |
| 147 | + |
| 148 | +### [`multiboot2`](https://github.com/rust-osdev/multiboot2) |
| 149 | +<span class="maintainers">Maintained by [@phip1611](https://github.com/phip1611)</span> |
| 150 | + |
| 151 | +_Convenient and safe parsing of Multiboot2 Boot Information (MBI) structures and |
| 152 | +the contained information tags. Usable in no_std environments, such as a kernel. |
| 153 | +An optional builder feature also allows the construction of the corresponding |
| 154 | +structures._ |
| 155 | + |
| 156 | +We merged the following PRs this month: |
| 157 | + |
| 158 | +<!-- - [build(deps): bump crate-ci/typos from 1.24.3 to 1.25.0](https://github.com/rust-osdev/multiboot2/pull/242) --> |
| 159 | +<!-- - [build(deps): bump cachix/install-nix-action from V27 to 29](https://github.com/rust-osdev/multiboot2/pull/241) --> |
| 160 | +- [multiboot2: various small fixes and doc improvements](https://github.com/rust-osdev/multiboot2/pull/245) |
| 161 | +- [multiboot2: bug fixes](https://github.com/rust-osdev/multiboot2/pull/246) |
| 162 | + |
| 163 | + |
| 164 | +### [`acpi`](https://github.com/rust-osdev/acpi) |
| 165 | +<span class="maintainers">Maintained by [@IsaacWoods](https://github.com/IsaacWoods)</span> |
| 166 | + |
| 167 | +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: |
| 168 | + |
| 169 | +- [Add `from_rsdt` method for `AcpiTables`.](https://github.com/rust-osdev/acpi/pull/222) |
| 170 | + |
| 171 | +Thanks to [@Hsy-Intel](https://github.com/Hsy-Intel) for their contributions! |
| 172 | + |
| 173 | + |
| 174 | +## Other Projects |
| 175 | + |
| 176 | +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](https://github.com/rust-osdev/homepage/pulls) with the updates of your OS project for the next post. |
| 177 | + |
| 178 | +<!-- |
| 179 | + Please use the following template: |
| 180 | +
|
| 181 | + ### [`owner_name/repo_name`](https://github.com/rust-osdev/owner_name/repo_name) |
| 182 | + <span class="maintainers">(Section written by [@your_github_name](https://github.com/your_github_name))</span> |
| 183 | +
|
| 184 | + ...<<your project updates>>... |
| 185 | +--> |
| 186 | + |
| 187 | +_No updates were proposed for this section this month._ |
| 188 | + |
| 189 | +## Join Us? |
| 190 | + |
| 191 | +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](https://rust-osdev.zulipchat.com). |
0 commit comments