Crates.io | firefly-types |
lib.rs | firefly-types |
version | 0.4.0 |
source | src |
created_at | 2024-07-28 07:45:52.685676 |
updated_at | 2024-11-16 13:34:28.952001 |
description | Parser and serializer for the Firefly Zero metadata file format |
homepage | https://fireflyzero.com/ |
repository | https://github.com/firefly-zero/firefly-types |
max_upload_size | |
id | 1317820 |
size | 31,824 |
[ 📄 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.
cargo add firefly-types
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();
MIT License. Feel free to use and modify for any purposes in any apps, commercial or not.