firefly-types

Crates.iofirefly-types
lib.rsfirefly-types
version0.3.0
sourcesrc
created_at2024-07-28 07:45:52.685676
updated_at2024-11-09 11:24:30.351628
descriptionParser and serializer for the Firefly Zero metadata file format
homepagehttps://fireflyzero.com/
repositoryhttps://github.com/firefly-zero/firefly-types
max_upload_size
id1317820
size31,228
Gram (orsinium)

documentation

README

firefly-types

[ 📄 docs ] [ 🐙 github ] [ 📦 crates.io ]

Rust crate for serializing and parsing the Firefly Zero metadata file format. It is used by firefly-runtime and firefly-launcher and can be useful if you're making your own launcher.

Installation

cargo add firefly-types

Usage

use firefly_rust::sudo;
use firefly_types::Meta;

let meta_path = "roms/sys/launcher/_meta";
let meta_raw = sudo::load_file_buf(meta_path).unwrap();
let meta = Meta::decode(meta_raw.data()).unwrap();

License

MIT License. Feel free to use and modify for any purposes in any apps, commercial or not.

Commit count: 54

cargo fmt