#serialization #parser-serializer #gamedev #firefly-zero #serde #config-parser #file-metadata

no-std firefly-types

Parser and serializer for the Firefly Zero metadata file format

4 releases (breaking)

0.5.0 Jan 22, 2025
0.4.0 Nov 16, 2024
0.3.0 Nov 9, 2024
0.2.0 Jul 28, 2024

#2133 in Parser implementations

Download history 6/week @ 2024-10-09 17/week @ 2024-10-16 1/week @ 2024-10-23 5/week @ 2024-10-30 119/week @ 2024-11-06 131/week @ 2024-11-13 42/week @ 2024-11-20 14/week @ 2024-11-27 19/week @ 2024-12-04 36/week @ 2024-12-11 24/week @ 2024-12-18 5/week @ 2024-12-25 19/week @ 2025-01-01 133/week @ 2025-01-22

152 downloads per month
Used in firefly_cli

MIT license

31KB
579 lines

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.


lib.rs:

Parser and serializer for the Firefly Zero metadata file format.

Based on postcard, no_std-compatible Rust-first binary serialization format.

Dependencies

~0.5–1.1MB
~25K SLoC