RIM is a comprehensive, pure-Rust toolkit for generating, manipulating, and analyzing disk images and filesystems. It is designed for high reliability, no_std embedding, and ease of use.
The project is divided into several composable crates:
| Crate | Description |
|---|---|
rimgen |
High-level CLI tool and library to generate disk images declaratively (layout.toml). |
rimfs |
Filesystem implementations (FAT32, ExFAT, EXT4) with no_std support. |
rimpart |
Partition table manipulation (GPT, MBR) and streaming readers. |
rimio |
Core I/O traits and abstractions (Blocking, Async-ready, UEFI/Std/Alloc support). |
To install the CLI tool rimgen:
cargo install rimgenCreate a layout.toml file:
[[partitions]]
name = "boot"
size = { Fixed = 128 }
fs = "Fat32"
bootable = true
[[partitions]]
name = "root"
size = "auto"
fs = "Ext4"Generate the image:
rimgen layout.toml --output disk.imgThis project is licensed under the MIT License - see the LICENSE file for details.
Source code is available at: https://github.com/mkidv/rim