firefly-types

Crates.iofirefly-types
lib.rsfirefly-types
version0.4.0
sourcesrc
created_at2024-07-28 07:45:52.685676
updated_at2024-11-16 13:34:28.952001
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,824
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: 56

cargo fmt