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

no-std firefly-types

Parser and serializer for the Firefly Zero metadata file format

1 unstable release

0.2.0 Jul 28, 2024

#2510 in Parser implementations

Download history 123/week @ 2024-07-26 29/week @ 2024-08-02 3/week @ 2024-08-09 4/week @ 2024-08-23 8/week @ 2024-08-30 20/week @ 2024-09-13 15/week @ 2024-09-20 16/week @ 2024-09-27 18/week @ 2024-10-04

69 downloads per month
Used in firefly_cli

MIT license

26KB
418 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
~26K SLoC