Crate serde [] [src]

Serde Serialization Framework

Serde is a powerful framework that enables serialization libraries to generically serialize Rust data structures without the overhead of runtime type information. In many situations, the handshake protocol between serializers and serializees can be completely optimized away, leaving serde to perform roughly the same speed as a hand written serializer for a specific type.

For a detailed tutorial on the different ways to use serde please check out the github repository

Reexports

pub use ser::Serialize;
pub use ser::Serializer;
pub use de::Deserialize;
pub use de::Deserializer;
pub use de::Error;

Modules

bytes

Helper module to enable serializing bytes more efficiently

de

Generic deserialization framework.

iter

Module that contains helper iterators.

ser

Generic serialization framework.

Macros

forward_to_deserialize

Helper to forward Deserializer methods to Deserializer::deserialize. Every given method ignores all arguments and forwards to deserialize. Note that deserialize_enum simply returns an Error::invalid_type; a better approach is tracked in serde-rs/serde#521.