neotron-romfs

Crates.ioneotron-romfs
lib.rsneotron-romfs
version1.0.0
sourcesrc
created_at2024-06-06 17:07:30.361273
updated_at2024-06-06 17:07:30.361273
descriptionParse a Neotron ROM-FS image
homepage
repositoryhttps://github.com/Neotron-Compute/neotron-romfs
max_upload_size
id1263906
size19,278
Jonathan 'theJPster' Pallant (thejpster)

documentation

README

Neotron ROMFS Library

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(())
}

Licence

Copyright (c) The Neotron Developers, 2024

Licensed under either MIT or Apache-2.0 at your option.

Commit count: 7

cargo fmt