lilliput-serde

Crates.iolilliput-serde
lib.rslilliput-serde
version0.1.0
created_at2025-05-27 14:42:56.419923+00
updated_at2025-05-27 14:42:56.419923+00
descriptionA serializer and deserializer of the lilliput data format, for serde
homepage
repositoryhttps://github.com/regexident/lilliput
max_upload_size
id1691204
size61,605
Vincent Esche (regexident)

documentation

README

lilliput-serde

Downloads Version License

Synopsis

A serializer and deserializer of the lilliput data format, for serde.

Usage

use lilliput_serde::prelude::*;

fn main() {
    // Or any other `T: Serialize`:
    let value = Value::String(StringValue::from("hello world".to_owned()));

    let encoded = to_vec(&value).unwrap();

    // or in case you need more fine-tuning:
    // let config: SerializerConfig = SerializerConfig::default();
    // let encoded = to_vec_with_config(&value, config).unwrap();

    let decoded = from_slice(&encoded).unwrap();

    assert_eq!(value, decoded);
}
Commit count: 201

cargo fmt