An open API service indexing awesome lists of open source software.

https://github.com/firefly-zero/firefly-types

⚙️ Parser and serializer for the Firefly Zero file and message formats
https://github.com/firefly-zero/firefly-types

config file-format firefly-zero gamedev postcard rust wasm

Last synced: about 1 month ago
JSON representation

⚙️ Parser and serializer for the Firefly Zero file and message formats

Awesome Lists containing this project

README

        

# firefly-types

[ [📄 docs](https://docs.rs/firefly-types/latest/firefly_types/) ] [ [🐙 github](https://github.com/firefly-zero/firefly-types) ] [ [📦 crates.io](https://crates.io/crates/firefly-types) ]

Rust crate for serializing and parsing the [Firefly Zero](https://fireflyzero.com/) metadata file format. It is used by firefly-runtime and firefly-launcher and can be useful if you're making your own launcher.

## Installation

```bash
cargo add firefly-types
```

## Usage

```rust
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](./LICENSE). Feel free to use and modify for any purposes in any apps, commercial or not.