serde_rison
A serde implementation for the RISON data format.
Heavily inspired by David Tolnay's serde_json. RISON is structurally similar to JSON, so much of the architecture carries over. This was a quick project for company's needs so I'm not planning on implementing generic Serializer over W: io::Write + Formatter, although if there is need on our side I'll convert it.
What's different from serde_json
- No
Writer/Formatterabstraction: just a plainto_string/from_strinterface - No
io::Writesupport: serialization builds aStringin memory - No pretty-printing
- No
to_valueyet
Usage
use ;
let person = Person ;
// Serialize
let rison = to_string.unwrap;
assert_eq!;
// Deserialize
let back: Person = from_str.unwrap;
assert_eq!;