pw_kernel#

A Rust-based kernel for embedded systems

Experimental Rust Code Size Impact: ~16-24 kB

pw_kernel is an embedded kernel written in Rust. Embedded systems built on top of pw_kernel are a composition of memory-protected userspace apps and drivers. All interactions with the kernel are mediated through unforgeable tokens called handles. The system is defined declaratively, and all allocation is static. Bazel macros are provided for building, linking, and optimizing multiple processes into a single image.

Quickstart

Get a complete, working system powered by pw_kernel up and running in minutes.

Quickstart
Tour

A conceptual overview of the software architecture of an embedded system built on top of pw_kernel.

Tour of pw_kernel
Building system images

How kernelspace and userspace apps are compiled and assembled into firmware images.

Building system images
Design

The design philosophy and goals of pw_kernel.

Design
Guides

Unit testing, panic detecting, and other real-world usage topics.

Guides