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
- Host: GitHub
- URL: https://github.com/firefly-zero/firefly-types
- Owner: firefly-zero
- License: other
- Created: 2024-04-29T09:46:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-28T07:45:59.000Z (10 months ago)
- Last Synced: 2024-10-08T15:51:02.192Z (7 months ago)
- Topics: config, file-format, firefly-zero, gamedev, postcard, rust, wasm
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.