Crates.io | neotron-romfs |
lib.rs | neotron-romfs |
version | 1.0.0 |
source | src |
created_at | 2024-06-06 17:07:30.361273 |
updated_at | 2024-06-06 17:07:30.361273 |
description | Parse a Neotron ROM-FS image |
homepage | |
repository | https://github.com/Neotron-Compute/neotron-romfs |
max_upload_size | |
id | 1263906 |
size | 19,278 |
A no_std
library for creating and parsing ROMFS images.
fn process_rom(data: &[u8]) -> Result<(), neotron_romfs::Error> {
let romfs = neotron_romfs::RomFs::new(data)?;
for entry in romfs {
if let Ok(entry) = entry {
println!("{} is {} bytes", entry.metadata.file_name, entry.metadata.file_size);
}
}
Ok(())
}
Copyright (c) The Neotron Developers, 2024
Licensed under either MIT or Apache-2.0 at your option.