← All Libraries
Serde

Serde

Serialization framework for Rust — efficient, zero-cost, and extensible.

Language: RustCategory: DataFirst released: 2016Created by: David TolnayLicense: MIT OR Apache-2.0

Serde is a framework for serializing and deserializing Rust data structures efficiently and generically. Rather than a runtime reflection approach, Serde uses Rust's powerful trait system and derive macros to generate serialization code at compile time for zero-cost abstraction. It supports over 30 data formats through its ecosystem, including JSON, YAML, TOML, Bincode, MessagePack, and CBOR.

Links

Key Features

Zero-cost serialization via compile-time code generationDerive macros for automatic Serialize/Deserialize impls30+ data format backends (JSON, YAML, TOML, etc.)Custom serialization logic with attributes and visitorsNo external runtime dependencies for coreFormat-independent data modelSupport for zero-copy deserialization (borrowed data)Human-readable and compact format switching