NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #3985 most downloaded on crates.io
Fast bincode de/serialization with placement initialization
Latest stable
0.6.3
Last release 1 months ago
13 Oct 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 30 of 32 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
32 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
fix(fuzz): remove SeedCorpusGroup from bundle manifest by @adamamsmith in https://github.com/anza-xyz/wincode/pull/474
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.6.2...wincode@v0.6.3
chore(doc): Better document validation requirements of context::Len by @cpubot in https://github.com/anza-xyz/wincode/pull/428
String UTF-8 before allocating by @kskalski in https://github.com/anza-xyz/wincode/pull/432Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.6.1...wincode@v0.6.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat(collections): cap allocated capacity for collections with unique keys by @kskalski in https://github.com/anza-xyz/wincode/pull/403
context by @cpubot in https://github.com/anza-xyz/wincode/pull/404with adapters receive appropriate lt rewrite by @cpubot in https://github.com/anza-xyz/wincode/pull/408Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.6.0...wincode@v0.6.1
ci: update to fuzz-upload-action v2 by @yevshev in https://github.com/anza-xyz/wincode/pull/326
keep_zero_copy(false) for &'a T by @cpubot in https://github.com/anza-xyz/wincode/pull/356new where ZERO_COPY_ALIGN_CHECK = true by @cpubot in https://github.com/anza-xyz/wincode/pull/361from attribute by @cpubot in https://github.com/anza-xyz/wincode/pull/371(T,) by @cpubot in https://github.com/anza-xyz/wincode/pull/372Reader trait to be unsafe + required method by @cpubot in https://github.com/anza-xyz/wincode/pull/381Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.5.5...wincode@v0.6.0
build(deps): bump pastey from 0.2.1 to 0.2.2 by @dependabot[bot] in https://github.com/anza-xyz/wincode/pull/302
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.5.4...wincode@v0.5.5
Deprecate solana-short-vec feature by @kskalski in https://github.com/anza-xyz/wincode/pull/305
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.5.3...wincode@v0.5.4
Bump wincode to 0.5.3 by @cpubot in https://github.com/anza-xyz/wincode/pull/301
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode-derive@v0.4.4...wincode@v0.5.3
build(deps): bump indexmap from 2.13.0 to 2.13.1 by @dependabot[bot] in https://github.com/anza-xyz/wincode/pull/286
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.5.1...wincode@v0.5.2
feat(schema): add context::Len impl for str,String by @cpubot in https://github.com/anza-xyz/wincode/pull/273
Reader for std::io::Cursor by @cpubot in https://github.com/anza-xyz/wincode/pull/278Writer for std::io::Cursor by @cpubot in https://github.com/anza-xyz/wincode/pull/280Vec when window is within len by @cpubot in https://github.com/anza-xyz/wincode/pull/282Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.5.0...wincode@v0.5.1
Bump toolchain and rust_version to 1.89.0 by @kskalski in https://github.com/anza-xyz/wincode/pull/181
alloc::sync::Arc use by @febo in https://github.com/anza-xyz/wincode/pull/235Reader and Writer traits by @cpubot in https://github.com/anza-xyz/wincode/pull/213Reader by @cpubot in https://github.com/anza-xyz/wincode/pull/243Vec impl by @cpubot in https://github.com/anza-xyz/wincode/pull/248Cow by @cpubot in https://github.com/anza-xyz/wincode/pull/249Ctx to SchemaRead by @cpubot in https://github.com/anza-xyz/wincode/pull/220consume* peek_* methods by @cpubot in https://github.com/anza-xyz/wincode/pull/263indexmap by @tanmay4l in https://github.com/anza-xyz/wincode/pull/253supports_borrow by @cpubot in https://github.com/anza-xyz/wincode/pull/277Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.6...wincode@v0.5.0
Deprecate Reader peek/consume APIs by @cpubot in https://github.com/anza-xyz/wincode/pull/255
Reader peek/consume APIs by @cpubot in https://github.com/anza-xyz/wincode/pull/255Ctx to SchemaRead by @cpubot in https://github.com/anza-xyz/wincode/pull/256Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.8...wincode@v0.4.9
v0.4.x: Add "target_has_atomic" condition for alloc::Arc use by @febo in https://github.com/anza-xyz/wincode/pull/239
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.7...wincode@v0.4.8
fix: update imports and cfg for no-alloc compilation by @kskalski in https://github.com/anza-xyz/wincode/pull/230
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.6...wincode@v0.4.7
Add deprecations and new methods to prep for IO rewrite by @cpubot in https://github.com/anza-xyz/wincode/pull/216
Pod<_> type by @tobias-nd in https://github.com/anza-xyz/wincode/pull/165peek methods to Reader by @cpubot in https://github.com/anza-xyz/wincode/pull/225decode_into_slice_t by @cpubot in https://github.com/anza-xyz/wincode/pull/228Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.5...wincode@v0.4.6
chore: don't deny warnings during compilation by @kskalski in https://github.com/anza-xyz/wincode/pull/189
uninit_<field>_ref() to UninitBuilder by @cpubot in https://github.com/anza-xyz/wincode/pull/180SeqLen for primitive integers by @cpubot in https://github.com/anza-xyz/wincode/pull/194Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.4...wincode@v0.4.5
Bump wincode to 0.4.4 by @cpubot in https://github.com/anza-xyz/wincode/pull/179
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode-derive@v0.4.2...wincode@v0.4.4
Bump to wincode 0.4.3 by @cpubot in https://github.com/anza-xyz/wincode/pull/174
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode-derive@v0.4.1...wincode@v0.4.3
chore: Remove deprecated Elem container by @cpubot in https://github.com/anza-xyz/wincode/pull/171
copy_into_slice by @cpubot in https://github.com/anza-xyz/wincode/pull/162Elem container by @cpubot in https://github.com/anza-xyz/wincode/pull/171SchemaRead and SchemaWrite implementations for Bound, Range, RangeInclusive from std::ops by @adpthegreat in https://github.com/anza-xyz/wincode/pull/106Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.1...wincode@v0.4.2
Bump proptest-derive from 0.7.0 to 0.8.0 by @dependabot[bot] in https://github.com/anza-xyz/wincode/pull/153
Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.4.0...wincode@v0.4.1
Deriving SchemaRead and SchemaWrite on compound types with generic type parameters will now automatically generate the appropriate constraints for gen
Deriving SchemaRead and SchemaWrite on compound types with generic type parameters will now automatically generate the appropriate constraints for generic type parameters in SchemaRead and SchemaWrite implementations.
Previously, one would have to constrain generic type parameters at the type definition site. E.g.,
#[derive(SchemaWrite, SchemaRead)]
struct Gen<T: SchemaWrite<Src = T> + for<'de> SchemaRead<'de, Dst = T>> {
inner: T,
}
Now, constraints will generated at implementation sites for SchemRead and SchemaWrite, such that:
#[derive(SchemaWrite, SchemaRead)]
struct Gen<T> {
inner: T,
}
compiles and works as expected.
Prior to the 0.3.0 release, ZeroCopy was implemented unconditionally for integer types on little endian targets. This meant that taking references to integer types or zero-copy structs containing integer types in a SchemaRead derived struct/enum trivially type-checked.
E.g.,
#[repr(C)]
#[derive(SchemaWrite, SchemaRead)]
struct Point {
x: u64
y: u64
}
struct PointRef<'a> {
point: &'a Point
}
Since 0.3.0, ZeroCopy depends on the Config used for deserialization. And, more specifically, SchemaRead is only implemented on references &T where T: ZeroCopy<Config>. As such, the above code did not compile. This was a regression relative to 0.2.x.
The derive macro will now generate the appropriate constraints for compound types containing references such that the above code now compiles and will be type-checked at the deserialization site. In particular, if the integer encoding is FixInt and configured endianness matches platform endianness, deserialization will type-check.
#[wincode(skip)] derive attributeIt is now possible to skip fields in serialization and deserialization with the #[wincode(skip)] derive attribute.
#[derive(SchemaRead, SchemaWrite)]
struct Foo {
x: u64,
#[wincode(skip)]
y: u64,
}
By default, when #[wincode(skip)] is declared, the derive macro will attempt to initialize the field with Default::default.
A default value can be provided if desired or if the type does not implement Default.
#[derive(SchemaRead, SchemaWrite)]
struct Foo {
x: u64,
#[wincode(skip(default_val = 42)]
y: u64,
}
Note that skipping fields with sized types will disqualify the outer type for zero-copy deserialization.
Reader and Writer bounds in SchemaRead and SchemaWriteSchemaRead and SchemaWrite trait definitions previously required &mut impl Reader<'de> and &mut impl Writer:
pub unsafe trait SchemaWrite<C: ConfigCore> {
// ...
fn write(writer: &mut impl Writer, src: &Self::Src) -> WriteResult<()>;
}
pub unsafe trait SchemaRead<'de, C: ConfigCore> {
// ...
fn read(reader: &mut impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>) -> ReadResult<()>;
}
They now accept just impl Writer and impl Reader<'de>.
pub unsafe trait SchemaWrite<C: ConfigCore> {
// ...
fn write(writer: impl Writer, src: &Self::Src) -> WriteResult<()>;
}
pub unsafe trait SchemaRead<'de, C: ConfigCore> {
// ...
fn read(reader: impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>) -> ReadResult<()>;
}
A blanket implementation for Reader and Writer is now provided for all &mut Reader and &mut Writer.
Duration/SystemTime type metadata by @publicqi in https://github.com/anza-xyz/wincode/pull/141SchemaRead ref constraints by @cpubot in https://github.com/anza-xyz/wincode/pull/150SchemaRead and SchemaWrite implementations of NonZero types - NonZeroU8, NonZeroU16 ..... from std::num by @adpthegreat in https://github.com/anza-xyz/wincode/pull/109random export by @cpubot in https://github.com/anza-xyz/wincode/pull/156Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.3.1...wincode@v0.4.0
Adding Ottersec report by @nbelenkov in https://github.com/anza-xyz/wincode/pull/113
Ipv4Addr, Ipv6Addr, IpAddr by @tanmay4l in https://github.com/anza-xyz/wincode/pull/104uuid?/std feature by @cpubot in https://github.com/anza-xyz/wincode/pull/117paste to pastey by @cpubot in https://github.com/anza-xyz/wincode/pull/118Full Changelog: https://github.com/anza-xyz/wincode/compare/wincode@v0.3.0...wincode@v0.3.1
It is now possible to provide a global configuration when invoking serialize, deserialize, zero-copy functions from_bytes, from_bytes_mut, and their c
It is now possible to provide a global configuration when invoking serialize, deserialize, zero-copy functions from_bytes, from_bytes_mut, and their counterparts (serialize_into, deserialize_from, etc).
The config-aware versions of these functions are in the wincode::config module. E.g.,
use wincode::{config::{Configuration, serialize}, len::FixIntLen};
let config = Configuration::default()
.with_varint_encoding()
.with_preallocation_size_limit::<{ 8 << 20 }>()
.with_length_encoding::<FixIntLen<u32>>()
// ...
let bytes = serialize(t, config);
All configuration modifies behavior at compile time, and as such is zero-overhead.
This enables compatibility with other serialization formats, like bincode 2.x's standard and borsh.
See the config module and Configuration.
SeqLen AdditionsUseIntLen<T> - Encode sequence lengths with the given T, using the configuration's integer encoding.FixIntLen<T> - Encode sequence lengths with the given T, using a fixed-width integer length encoding.Both types support an additional optional constant that allows overriding the preallocation size limit for the particular sequence.
IntEncoding TraitInteger encoding is now fully pluggable by implementing IntEncoding. Configurable in global Configuration.
Two IntEncoding traits officially supported:
TagEncoding TraitEnum tag (discriminant) encodings now configurable in global Configuration.
Implementation is provided for all types that support TryInto<u32> and TryFrom<u32>.
Uuid from the uuid crate (gated by uuid or uuid-serde-compat feature flags)DurationSystemTimeSchemaRead, SchemaWrite, and SeqLen marked as unsafe.SchemaRead, SchemaWrite and SeqLen now take an additional ConfigCore type parameter.assert_zero_copy attribute macro by @febo in https://github.com/anza-xyz/wincode/pull/66Cursor::cur_slice implementation safe by @tobias-nd in https://github.com/anza-xyz/wincode/pull/68size_of_elem_slice has special optimizations by @tobias-nd in https://github.com/anza-xyz/wincode/pull/83unsafe blocks by @tobias-nd in https://github.com/anza-xyz/wincode/pull/84Writer implementation for [u8] by @tobias-nd in https://github.com/anza-xyz/wincode/pull/87SchemaRead and SchemaWrite trait as unsafe by @tobias-nd in https://github.com/anza-xyz/wincode/pull/86SchemaRead and SchemaWrite implementations for std::time::Duration by @tanmay4l in https://github.com/anza-xyz/wincode/pull/78SeqLen trait unsafe by @cpubot in https://github.com/anza-xyz/wincode/pull/99uuid support by @cpubot in https://github.com/anza-xyz/wincode/pull/100Writer Safety section by @tobias-nd in https://github.com/anza-xyz/wincode/pull/103SystemTime serialization and deserialization implementations by @tanmay4l in https://github.com/anza-xyz/wincode/pull/101const from generated function by @febo in https://github.com/anza-xyz/wincode/pull/111Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.5...wincode@v0.3.0
Ensure derived struct read/write can SROA by @cpubot in https://github.com/anza-xyz/wincode/pull/64
Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.4...v0.2.5
Mutable zero-copy deserialization now supported! It is now possible to mutate serialized data in place on qualifying types.
Mutable zero-copy deserialization now supported! It is now possible to mutate serialized data in place on qualifying types.
For example:
#[derive(SchemaWrite, SchemaRead)]
#[repr(C)]
struct Data {
bytes: [u8; 7],
the_answer: u8,
}
let data = Data { bytes: [0; 7], the_answer: 0 };
let mut serialized = wincode::serialize(&data).unwrap();
let data_mut = Data::from_bytes_mut(&mut serialized).unwrap();
data_mut.bytes = *b"W1NC0D3";
data_mut.the_answer = 42;
let deserialized: Data = wincode::deserialize(&serialized).unwrap();
assert_eq!(deserialized, Data { bytes: *b"wincode", the_answer: 42 });
Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.3...v0.2.4
This release adds comprehensive zero-copy support, including support user-defined types with the SchemaRead derive macro.
This release adds comprehensive zero-copy support, including support user-defined types with the SchemaRead derive macro.
wincode::serialize with serialize_into by @TanmayDhobale in https://github.com/anza-xyz/wincode/pull/55ZeroCopy for all integer types by @vadorovsky in https://github.com/anza-xyz/wincode/pull/56Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.2...v0.2.3
feat(io): implement Writer directly for [u8] and [MaybeUninit ] by @kskalski in https://github.com/anza-xyz/wincode/pull/41
Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.1...v0.2.2
Fix alloc import when only alloc feature enabled
Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.2.0...v0.2.1
Elem is deprecated (still supported as a transparent pass-through for backwards compatibility)
This release introduces compile-time type metadata that enables optimized serialization and deserialization of types with compile-time known sizes, dramatically improving performance while simplifying the API surface. It also adds additional I/O helpers, more built-in type support, and flexible enum encoding options.
TypeMeta)A major new addition: SchemaRead and SchemaWrite now expose a TypeMeta constant that describes a type's serialized size and zero-copy capability.
Types are classified as one of:
Vec<T>, Box<[T]>)This metadata allows us to:
Static aggregates, eliding intermediate bounds checks for those chunks.Pod annotations.SchemaRead and SchemaWrite derive macros will automatically generate this metadata for your types.
In microbenchmarks, types qualifying for TypeMeta::Static and collections containing TypeMeta::Static types show 6–10× faster serialization and deserialization over v0.1.x.
Reader and Writer are now traits rather than concrete types.
This enables multiple I/O backends (slice, Cursor, Vec, etc.) and allows implementing trusted (bounds-check-elided) variants where subsets of the serialization / deserialization targets have compile-time known sizes.
SchemaRead and SchemaWrite now take impl Reader / impl Writer instead of concrete types.
Pod Inference & Deprecation of ElemThe new compile-time metadata makes manual annotation with Pod unnecessary in most cases:
Collections like Vec<T> or Box<[T]> now infer Pod automatically
Elem is deprecated (still supported as a transparent pass-through for backwards compatibility)TypeMeta InferenceEnums will be qualified as TypeMeta::Static if all variants share equal serialized size, unlocking significant performance improvements for unit enums and enums with equal sized variants.
Enums can now specify how their discriminants are encoded:
#[wincode(tag_encoding = "u8")]
enum Example { A, B }
Enums can now specify custom discriminant expressions for variants:
enum Enum {
#[wincode(tag = 1)]
A { name: String, id: u64 },
#[wincode(tag = 2)]
B(String, Vec<u8>),
#[wincode(tag = 3)]
C,
}
Added built-in implementations:
f32f64Result<T, E>ReadError and WriteError now support custom error variants.io::ReadError and io::WriteError now support std::io::Error when the std feature is enabled.repr(packed) during compile by @publicqi in https://github.com/anza-xyz/wincode/pull/10ReadError and WriteError by @qkniep in https://github.com/anza-xyz/wincode/pull/15unsafe as_trusted_for by @cpubot in https://github.com/anza-xyz/wincode/pull/26Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.1.2...v0.2.0
Implement specialization for contiguous byte structures by @cpubot in https://github.com/anza-xyz/wincode/pull/7
SchemaRead impl for &'de [u8] by @cpubot in https://github.com/anza-xyz/wincode/pull/8Full Changelog: https://github.com/anza-xyz/wincode/compare/v0.1.1...v0.1.2
Make #[derive(SchemaRead)] less brittle with generic lifetimes by @cpubot in https://github.com/anza-xyz/wincode/pull/4
#[derive(SchemaRead)] less brittle with generic lifetimes by @cpubot in https://github.com/anza-xyz/wincode/pull/4doc_auto_cfg was merged into doc_cfg by @cpubot in https://github.com/anza-xyz/wincode/pull/5Full Changelog: https://github.com/anza-xyz/wincode/commits/v0.1.1
Nothing published for this version
Nothing published for this version
One column per month.