| Crates.io | ext4-mkfs |
| lib.rs | ext4-mkfs |
| version | 0.1.0 |
| created_at | 2026-01-25 19:41:39.145107+00 |
| updated_at | 2026-01-25 19:41:39.145107+00 |
| description | Pure Rust library for creating ext2/ext3/ext4 filesystems |
| homepage | |
| repository | https://github.com/AprilNEA/ext4-mkfs |
| max_upload_size | |
| id | 2069400 |
| size | 29,398 |
Pure Rust library for creating ext2/ext3/ext4 filesystems, powered by lwext4.
BlockDevice trait for custom backendsIoBlockDevice for files and memory buffersuse ext4_mkfs::{mkfs, MkfsConfig, IoBlockDevice, FsType};
use std::fs::OpenOptions;
let file = OpenOptions::new()
.read(true)
.write(true)
.open("disk.img")?;
let device = IoBlockDevice::new(file, 512, 100 * 1024 * 1024);
mkfs(device, MkfsConfig::new()
.fs_type(FsType::Ext4)
.block_size(4096)
.label("my_volume"))?;
git clone --recurse-submodules https://github.com/user/ext4-mkfs
cd ext4-mkfs
cargo build --release
MIT OR Apache-2.0