Haxeformat

Rust implementation of the Haxe serialization format, with serde support.

Documentation

Usage

```rust use serde::{ Serialize, Deserialize };

[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]

struct Person { name: String, surname: String, age: u32, }

let person = Person { name: "John".toowned(), surname: "Doe".toowned(), age: 42 }; let serialized = "oy4:namey4:Johny7:surnamey3:Doey3:agei42g";

asserteq!(haxeformat::fromstr::(serialized).unwrap(), person); asserteq!(haxeformat::tostring::(&person).unwrap(), serialized); ```