Hermit Kernel is the Rust kernel of the Hermit unikernel. Applications link it as a static library to run without a full operating system underneath.
Overview
Hermit Kernel is the kernel component of the Hermit unikernel project, written in Rust. Hermit targets a scalable, predictable runtime for high-performance and cloud computing by bundling application code directly with a kernel library instead of relying on a conventional installed OS.
In typical use the kernel is linked as a static library into Rust applications via the Hermit crate. It can also be built as a standalone static library for other toolchains. The project is a rewrite of HermitCore and is developed without C or C++ in the kernel and Rust runtime integration.
Rust applications that use the Rust runtime without direct OS services can run on Hermit without modification, and the build workflow is extended to stay close to normal Rust development. Example programs are built and run under QEMU with a Hermit loader; networking and filesystem examples need extra features and devices.
The kernel uses the log crate for message verbosity, controlled by the HERMIT_LOG_LEVEL_FILTER environment variable. Architectures mentioned for builds and examples include x86_64, aarch64, and riscv64.
Key features
- Rust-only kernel implementation
- Static library linking model
- QEMU-based example runs
- Configurable log verbosity
- Multi-architecture build targets
- Hermit loader boot path
- Rust runtime integration
- Network and filesystem feature flags
Use cases
- Unikernel high-performance workloads
- Low-overhead virtualized apps
- Rust apps without host OS
- Cloud-oriented minimal runtimes
- Research unikernel experiments