# resonite-core
<picture>
<source srcset="https://github.com/vlams1/resonite-core/raw/master/assets/logo-dark.svg" media="(prefers-color-scheme: dark)">
<source srcset="https://github.com/vlams1/resonite-core/raw/master/assets/logo-light.svg" media="(prefers-color-scheme: light)">
<img src="" align="right" width="300" height="300">
</picture>
[](https://crates.io/crates/resonite-core)
[](https://docs.rs/resonite-core)\
[](https://github.com/vlams1/resonite-core/blob/master/LICENSE-MIT)
[](https://github.com/vlams1/resonite-core/blob/master/LICENSE-APACHE)
**resonite-core** is a pure Rust implementation of file formats used by the game [Resonite](https://resonite.com).\
It provides parsing and serialization support for various Resonite-specific file types.
*This library is not affiliated with the creators of Resonite.*
### Currently Supported Formats
- `AnimJ` – JSON animation data
- `AnimX` – Binary animation data
### Example
Converting AnimJ to AnimX
```rust
use resonite_core::animation::Animation;
let anim: Animation = serde_json::from_str(/* AnimJ */)?;
let mut buf = Vec::new();
anim.write_animx(&mut buf);
```