NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #552 most downloaded on crates.io
Optimized handling of `&[u8]` and `Vec<u8>` for Serde
Latest stable
0.11.19
Last release 1 years ago
15 Sep 2025
Release timing varies
gaps range from 2 weeks to 1.9 years
Most releases are documented
notes for 23 of 27 stable releases
1 version withdrawn
withdrawn after publishing
10 years old
28 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Fix propagation of "std" and "alloc" features to serde
Switch serde dependency to serde_core
Documentation improvements
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Documentation improvements
Implement Default for ByteArray, From for ByteArray, ByteBuf and Bytes (#51, thanks @zensh)
Support deserializing &'de [u8; N] (#48, thanks @sosthene-nitrokey)
&'de [u8; N] (#48, thanks @sosthene-nitrokey)Support serializing and deserializing [u8; N], and add ByteArray (#28, thanks @sgued)
[u8; N], and add ByteArray<N> (#28, thanks @sgued)&'de ByteArray<N> (#46)serde(with = "serde_bytes") in no-std Deserialize impls (#47)Documentation improvements
Nothing published for this version
Add no-alloc category to crates.io metadata
no-alloc category to crates.io metadataNothing published for this version
Nothing published for this version
Add categories and keywords to crates.io metadata
Add rust-version entry to Cargo.toml to declare the oldest supported compiler version
rust-version entry to Cargo.toml to declare the oldest supported compiler versionAllow Cow\<\[u8\]\> and Cow\ to deserialize from owned bytes
Support bytes inside of Option, as in:
Support bytes inside of Option, as in:
#[serde(with = "serde_bytes")]
opt_bytes: Option<&'a [u8]>,
Documentation improvement (#17, thanks @djc)
Support "alloc" feature on stable Rust 1.36+ (#16, thanks @martindisch)
Support serializing dynamically sized bytes fields.
Support serializing dynamically sized bytes fields.
pub fn serialize<T, S>(bytes: &T, serializer: S) -> Result<S::Ok, S::Error>
where
- T: Serialize,
+ T: ?Sized + Serialize,
S: Serializer,
{...}
The definition of Bytes has changed from struct Bytes<'a>(&'a [u8]) to struct Bytes([u8]) which makes it work more like str, [u8], Path, CStr etc. Thi
struct Bytes<'a>(&'a [u8]) to struct Bytes([u8]) which makes it work more like str, [u8], Path, CStr etc. This makes it possible to use Cow<Bytes> for example.Update documentation examples to 2018 edition
Accept T: ?Sized in serde_bytes::serialize
T: ?Sized in serde_bytes::serialize- Updates to documentation only.
Implement Deserialize for Bytes (#5, thanks @hcpl)
Rename the unstable collections feature to alloc to align with the corresponding change in nightly
collections feature to alloc to align with the corresponding change in nightlyNothing published for this version
Factor Bytes and ByteBuf types out of serde 0.9
Nothing published for this version
One column per quarter.