NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #23 most downloaded on crates.io
Macros 1.1 implementation of #[derive(Serialize, Deserialize)]
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
1 version withdrawn
withdrawn after publishing
10 years old
271 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Produce error message on suffixed string literals inside serde attributes
Add Deserializer::deserialize_identifier support for adjacently tagged enums (#2475, thanks @Baptistemontan)
Allow serde::IgnoredAny to be the type for a serde(flatten) field (#2436, thanks @Mingun)
serde::de::IgnoredAny to be the type for a serde(flatten) field (#2436, thanks @Mingun)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add serialize and deserialize impls for RangeFrom and RangeTo (#2471, thanks @tbu-)
RangeFrom and RangeTo (#2471, thanks @tbu-)Add no-alloc category to crates.io metadata
no-alloc category to crates.io metadataFix incorrect count of fields passed to tuple deserialization methods when using serde(skip_deserializing) attributes (#2466, thanks @Mingun)
serde(skip_deserializing) attributes (#2466, thanks @Mingun)-Zminimal-versions buildAllowed enum variants to be individually marked as untagged (#2403, thanks @dewert99)
Eliminate build script from serde_derive crate to slightly reduce build time (#2442, thanks @taiki-e)
Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the csv crate (#2377, thanks @mfro)
Support deserializing flattened adjacently tagged enums from data formats which represent fields as bytes, such as the csv crate (#2377, thanks @mfro)
#[derive(Deserialize)]
pub struct Record {
common: u64,
#[serde(flatten)]
kind: Kind,
}
#[derive(Deserialize)]
#[serde(tag = "kind", content = "parameter", rename_all = "lowercase")]
enum Kind {
Foo(u64),
Bar(bool),
}
common,kind,parameter
1,foo,42
2,bar,true
Improve error messages produced by serde_test on test failure (#2435, thanks @Mingun)
Make derived serializer/deserializer internals doc(hidden) (#2426, thanks @compiler-errors)
doc(hidden) (#2426, thanks @compiler-errors)Accept empty #\[serde()\] attribute
Fix _"expected serde crate attribute to be a string"_ error when using macro_rules metavariable inside of serde attribute: #[serde(crate = $serde_path
#[serde(crate = $serde_path)] (#2409)- Update syn dependency to 2.x
Nothing published for this version
Support Serialize and Deserialize impls for core::CStr and alloc::CString without "std" feature (#2374, thanks @safarir)
Serialize and Deserialize impls for core::ffi::CStr and alloc::ffi::CString without "std" feature (#2374, thanks @safarir)Fix "undeclared lifetime" error in generated code when deriving Deserialize for an enum with both flatten and 'static fields (#2383, thanks @Mingun)
flatten and 'static fields (#2383, thanks @Mingun)Support serde(alias = "…") attribute used inside of flattened struct (#2387, thanks @bebecue)
serde(alias = "…") attribute used inside of flattened struct (#2387, thanks @bebecue)Nothing published for this version
Update serde::{ser,de}::StdError to re-export core::Error when serde is built with feature="std" off and feature="unstable" on
serde::{ser,de}::StdError to re-export core::error::Error when serde is built with feature="std" off and feature="unstable" on (#2344)Relax some trait bounds from the Serialize impl of HashMap and BTreeMap
Serialize impl of HashMap and BTreeMap (#2334)Serialize and Deserialize impls of std::sync::atomic types on more platforms (#2337, thanks @badboy)Relax some trait bounds from the Serialize impl of BinaryHeap, BTreeSet, and HashSet (#2333, thanks @jonasbb)
Serialize impl of BinaryHeap, BTreeSet, and HashSet (#2333, thanks @jonasbb)Support remote derive for generic types that have private fields
remote derive for generic types that have private fields (#2327)Add serde::value::EnumAccessDeserializer which transforms an EnumAccess into a Deserializer
serde::de::value::EnumAccessDeserializer which transforms an EnumAccess into a Deserializer (#2305)Allow internally tagged newtype variant to contain unit (#2303, thanks @tage64)
Allow RefCell\ , Mutex\ , and RwLock\ to be serialized regardless of whether T is Sized (#2282, thanks @ChayimFriedman2)
Sized (#2282, thanks @ChayimFriedman2)Change atomic ordering used by Serialize impl of atomic types to match ordering used by Debug impl of those same types (#2263, thanks @taiki-e)
Invert build.rs cfgs in serde_test to produce the most modern configuration in the default case (#2253, thanks @taiki-e)
Add keywords to crates.io metadata
Add no-std category to crates.io metadata
no-std category to crates.io metadataInvert serde_derive cfgs to convenience non-Cargo builds on a modern toolchain (#2251, thanks @taiki-e)
Add new constructor function for all IntoDeserializer impls
new constructor function for all IntoDeserializer impls (#2246)Nothing published for this version
Update documentation links to some data formats whose repos have moved (#2201, thanks @atouchet)
rust-version of serde and serde_test (#2168)Improve default error message when Visitor fails to deserialize a u128 or i128
Visitor fails to deserialize a u128 or i128 (#2167)Update discord channels listed in readme
Improve error messages on deserializing NonZero integers from a 0 value
Optimize deserialization of data structures that contain recursive use of flatten fields or tag or untagged enums
flatten fields or tag or untagged enums (#2148)Enable Serialize and Deserialize impls for std::atomic::{AtomicI64, AtomicU64} on riscv64 arch (#2141, thanks @Avimitin)
std::sync::atomic::{AtomicI64, AtomicU64} on riscv64 arch (#2141, thanks @Avimitin)Avoid unused_results being triggered in generated code for adjacently tagged enum (#2116, thanks @tyranron)
unused_results being triggered in generated code for adjacently tagged enum (#2116, thanks @tyranron)Provide MapAccess and SeqAccess impl for reference to a dynamically sized existing impl
MapAccess and SeqAccess impl for reference to a dynamically sized existing impl (#2081)Support deserialization of remote structs that used packed repr (#2078, #2079, #2080)
Enable 128-bit integers on emscripten in Rust 1.40+ (#2076, thanks @Manishearth)
Resolve warning in rustc nightly-2021-07-31+ compiling serde_test
Resolve conflict with forbid(future_incompatible) lint setting in generated code (#2026, thanks @hyd-dev)
forbid(future_incompatible) lint setting in generated code (#2026, thanks @hyd-dev)Improve performance of serializing Ipv4Addr (#2001, thanks @saethlin)
Ipv4Addr (#2001, thanks @saethlin)Fix possible panic deserializing invalid data as SystemTime (#1997, thanks @cyang1)
SystemTime (#1997, thanks @cyang1)Support Self keywords in fields of types that derive Deserialize (#1830, thanks @taiki-e)
Self keywords in fields of types that derive Deserialize (#1830, thanks @taiki-e)Self inside fields that use serialize_with (#1970)Add IntoDeserializer impl for \&\[u8\] (#1898, thanks @Mingun)
Add IntoDeserializer impl for &[u8] (#1898, thanks @Mingun)
Handle unrecognized numeric field keys during deserialization of a field_identifier, equivalently to string field keys (#1914, thanks @Mingun)
Add attribute to override default deserialization failure expectation message (#1916, thanks @Mingun)
#[derive(Deserialize)]
#[serde(untagged, expecting = "single version or array of versions")]
struct VersionSpec {
One(Version),
Many(Vec<Version>),
}
Improve serde_test handling of map entries and error message construction (#1918, thanks @Mingun)
Produce more accurate location information on test failures from serde_test crate (#1920, thanks @Mingun)
Improve diagnostic on failure to parse a rename_all attribute (#1960, #1961)
Eliminate unnecessary trait bounds on some value Deserializer impls (#1963)
Support borrowed data during deserialization of a field identifier (#1917, thanks @Mingun)
Duration with nanoseconds that cause the seconds counter to overflow (#1958, thanks @jonasbb)Fix deserialization of ignored fields containing 128-bit integer (#1955, thanks @TheJokr)
Nothing published for this version
Support serialization of core::Wrapping in no_std mode (#1926, thanks @attente)
Allow serialization of std::SocketAddrV6 to include a scope id if present (based on https://github.com/rust-lang/rust/pull/77426)
Fix deserialization of IpAddr, SocketAddr, Bound, Result, OsString in formats which process variant identifiers as u64 (#1888, thanks @joshtriplett)
Support #[serde(flatten)] on a field whose type is a type parameter and concrete type is ()
#[serde(flatten)] on a field whose type is a type parameter and concrete type is () (#1873)Improve packed repr matching to support deriving Serialize for structs having repr(C, packed) (#1813, thanks @TannerRogalsky)
packed repr matching to support deriving Serialize for structs having repr(C, packed) (#1813, thanks @TannerRogalsky)Improve diagnostic when a serde trait is not implemented (#1827, thanks @taiki-e)
Support serde(flatten) on map types where the Serializer only works with serialize_entry
serde(flatten) on map types where the Serializer only works with serialize_entry (#1837)Process borrowed lifetimes inside of interpolated macro_rules metavariables, such as in the case of #[derive(Deserialize)] struct S<'a> { field: $fiel
#[derive(Deserialize)] struct S<'a> { field: $field } (#1821)One column per quarter.