#seed #seeded #serialization #serde

serde-seeded

Trait and macros for easy seeded serialization with serde

1 unstable release

new 0.1.0 Feb 17, 2025

#773 in Encoding

Download history 74/week @ 2025-02-12

74 downloads per month

Apache-2.0 OR MIT

20KB
543 lines

Seeded serialization

CI Crate informations License Documentation

This library provides types, traits and derive macros to deal with seeded serialization/deserialization with serde.

  • A SerializeSeeded trait and derive macro to serialize types with a seed.
  • A Seeded<Q, T> type that implements Serialize calling T::serialize_seeded with a seed Q.
  • A DeserializeSeeded trait and derive macro to deserialize types with a seed.
  • A Seed<Q, T> type implementing DeserializeSeed calling T::deserialize_seeded with a seed Q.

See the tests folder to find some examples.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~105–350KB