NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #19 most downloaded on crates.io
A generic serialization/deserialization framework
Latest stable
1.0.229
Last release 4 months ago
18 Jul 2026
Ships unpredictably
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 56 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
12 years old
316 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Update to syn 3
Allow building documentation with RUSTDOCFLAGS='--cfg=docsrs' set for the whole dependency graph
RUSTDOCFLAGS='--cfg=docsrs' set for the whole dependency graph (#2995)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Documentation improvements
Deduplicate variant matching logic inside generated Deserialize impl for adjacently tagged enums ( #2935 , thanks @Mingun )
Avoid triggering a deprecation warning in derived Serialize and Deserialize impls for a data structure that contains its own deprecations ( #2879 , th…
Remove private types being suggested in rustc diagnostics
Fix serde_core documentation links
Make serialize_with attribute produce code that works if respanned to 2024 edition ( #2950 , thanks @aytey )
Deprecate serde_if_integer128! macro
Add a way for data formats to depend on serde traits without waiting for serde_derive compilation: https://docs.rs/serde_core ( #2608 , thanks @osiewi
Prevent absolute_paths Clippy restriction being triggered inside macro-generated code (#2906, thanks @davidzeng0)
absolute_paths Clippy restriction being triggered inside macro-generated code (#2906, thanks @davidzeng0)Nothing published for this version
Support serializing externally tagged unit variant inside flattened field (#2786, thanks @Mingun)
Mark all generated impls with #\[automatically_derived\] to exclude from code coverage (#2866, #2868, thanks @tdittr)
Produce warning when multiple fields or variants have the same deserialization name (#2855, #2856, #2857)
Implement IntoDeserializer for all Deserializers in serde::value module (#2568, thanks @Mingun)
Fix support for macro-generated with attributes inside a newtype struct
with attributes inside a newtype struct (#2847)Fix hygiene of macro-generated local variable accesses in serde(with) wrappers
Improve error reporting about mismatched signature in with and default attributes (#2558, thanks @Mingun)
with and default attributes (#2558, thanks @Mingun)Support serializing and deserializing IpAddr and SocketAddr in no-std mode on Rust 1.77+ (#2816, thanks @MathiasKoch)
IpAddr and SocketAddr in no-std mode on Rust 1.77+ (#2816, thanks @MathiasKoch)serde::ser::StdError and serde::de::StdError equivalent to core::error::Error on Rust 1.81+ (#2818)Fix deserialization of empty structs and empty tuples inside of untagged enums (#2805, thanks @Mingun)
Support serializing and deserializing unit structs in a flatten field (#2802, thanks @jonhoo)
flatten field (#2802, thanks @jonhoo)Improve interactions between flatten attribute and skip_serializing/skip_deserializing (#2795, thanks @Mingun)
flatten attribute and skip_serializing/skip_deserializing (#2795, thanks @Mingun)Improve support for flatten attribute inside of enums (#2567, thanks @Mingun)
flatten attribute inside of enums (#2567, thanks @Mingun)Use serialize_entry instead of serialize_key + serialize_value when serialize flattened newtype enum variants (#2785, thanks @Mingun)
Apply #\[diagnostic::on_unimplemented\] attribute on Rust 1.78+ to suggest adding serde derive or enabling a "serde" feature flag in dependencies (#27
- Documentation improvements
Provide public access to RenameAllRules in serde_derive_internals
Resolve unexpected_cfgs warning
Fix formatting of "invalid type" and "invalid value" deserialization error messages containing NaN or infinite floats (#2733, thanks @jamessan)
Fix ambiguous associated item when forward_to_deserialize_any! is used on an enum with Error variant (#2732, thanks @aatifsyed)
forward_to_deserialize_any! is used on an enum with Error variant (#2732, thanks @aatifsyed)Support serializing and deserializing Saturating (#2709, thanks @jbethune)
Saturating<T> (#2709, thanks @jbethune)Fix unused_imports warnings when compiled by rustc 1.78
Improve formatting of "invalid type" error messages involving floats
Prevent remote definitions of tuple struct or tuple variant from triggering dead_code warning
Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache
Fix field names used for the deserialization of RangeFrom and RangeTo (#2653, #2654, #2655, thanks @emilbonnek)
RangeFrom and RangeTo (#2653, #2654, #2655, thanks @emilbonnek)Allow internal tag field in untagged variant (#2646, thanks @robsdedude)
Nothing published for this version
Preserve NaN sign when deserializing f32 from f64 or vice versa
Fix "cannot infer type" error when internally tagged enum contains untagged variant (#2613, thanks @ahl)
Fix _"failed to parse manifest"_ error when building serde using a Cargo version between 1.45 and 1.50
Remove support for Emscripten targets on rustc older than 1.40
Disallow incompatible versions of serde_derive and serde in the dependency graph (#2588, thanks @soqb)
serde_derive and serde in the dependency graph (#2588, thanks @soqb)Fix error _"cannot move out of *self which is behind a shared reference"_ deriving Serialize on a non_exhaustive enum
*self which is behind a shared reference" deriving Serialize on a non_exhaustive enum (#2591)Restore from-source serde_derive build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supporte
serde_derive build on all platforms — eventually we'd like to use a first-class precompiled macro if such a thing becomes supported by cargo / crates.ioSupport deserializing Box with an equivalent representation as OsString (#2556, thanks @DBLouis)
Box<OsStr> with an equivalent representation as OsString (#2556, thanks @DBLouis)Render field aliases in sorted order in error messages (#2458, thanks @Mingun)
serde(default) on tuple structs (#2553, thanks @Mingun)Make serde(alias) work in combination with flatten when using in-place deserialization (#2443, thanks @Mingun)
serde(alias) work in combination with flatten when using in-place deserialization (#2443, thanks @Mingun)Nothing published for this version
Support serialization of tuple variants inside a flattened field (#2448, thanks @Mingun)
Fix build error when using serde with "std" feature turned off and "unstable" feature turned on
Add serde(rename_all_fields = "...") attribute to apply a rename_all on every struct variant of an enum (#1695, thanks @jplatte)
serde(rename_all_fields = "...") attribute to apply a rename_all on every struct variant of an enum (#1695, thanks @jplatte)Allow tag field of an internally tagged enum to have same name as a field inside a skipped struct variant (#2266, thanks @flisky)
Restore missing LICENSE files in serde_derive crate (#2527, thanks @ankane)
Nothing published for this version
Fix missing trait implementations when using serde derive macro on a macro-generated data structure, such as via the bitflags crate
bitflags crate (#2516)Experiment with precompiling the serde_derive macros to reduce build time
Nothing published for this version
Support derive(Deserialize) on unit structs that have const generics (#2500, thanks @Baptistemontan)
derive(Deserialize) on unit structs that have const generics (#2500, thanks @Baptistemontan)One column per quarter.