NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #902 most downloaded on crates.io
D-Bus & GVariant encoding & decoding (deprecated: merged into zbus)
Latest stable
5.15.1
Last release 1 months ago
16 Oct 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 57 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
72 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
📦️ Mark the crate deprecated in its package metadata.
🗑️ Deprecate GVariant support in zvariant.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
♻️ Use zcheapstr for the Str type.
a{uy} encoding.(uy) encoding.🚨 Use Option::filter instead of a manual match.
⬆️ Update libfuzzer-sys to v0.4.13 (#1815).
amb encoding (GVariant only).⬆️ Bump zvariant_utils requirement to 3.4.
Fd.✨ Support nested dictionaries in *Dict derives. #312
📝 Configure docs.rs to build for all supported targets.
✨ Implement Basic for more types. #1681
⏪️ Revert "🐛 zv: Don't impl Type for dicts with non-basic keys".
🤖 release-plz: Fix formatting of CHANGELOG files.
✨ Implement TryFrom<&Value> for tuples.
TryFrom<&Value> for tuples.to_string_lossy for FilePath.➖ Switch from rand to fastrand in array_value test. fastrand is already depended on indirectly.
rand to fastrand in array_value test. fastrand is already depended on indirectly.🐛 Reduce allocations in OwnedValue::try_from.
🚑️ Check signature before serializing struct as a u8. This fixes a regression that was exposed by 56cbb1f64. #1417
FilePath type to serve as a thin abstraction that handles (de)serialization
of a file path as a byte array, since en/decoding of strings is limited to only UTF-8 characters
in both D-Bus format and serde API. #977🚑️ Fix use of empty structs with SerializeDict. #1375
✨ Un-deprecate SerializeDict & DeserializeDict. For simple cases, they're pretty good and now that we've made them wrappers around serde derives, main…
A bugfix release, fixing the breakage from 5.5.0 (now yanked):
A bugfix release, fixing the breakage from 5.5.0 (now yanked):
pub use instead of a type alias. for as_value::{Deserialize, Serialize}. They structs expose their main internal field and get instantiated directly in the using code and that seems to break the API compatiblity when using type aliases.🗑️ Deprecate SerializeDict & DeserializeDict macro. Now that user can directly use serde::{Serialize, Deserialize} for dict encoding of a struct, we d…
serde::{Serialize::Deserialize} derives to (de)serialize a value as a Value (variant type). This is espcially useful for (de)serialization of structs as a dictionary (a{sv}).serde::{Serialize, Deserialize} for dict encoding of a struct, we don't need these anymore.as_value module and given the context, we can just name them Serialize and Deserialize. We still provide type aliases to not break the API.Str docs.Borrow makes things such as using Owned* types as keys easier, and it was more-or-less designed for this type of scenario anyway. Although it comes with some stringent requirements (i.e. traits implemented on the owned type need to have identical behavior to the borrowed type), all of these types are already rather thin wrappers to begin with.static_assertions dep.*Value derive macros:
__ so it doesn't conflict w/ fields. ..in the struct deriving DeserializeDict. #1252.✨ *Value derive macros now support optional fields in dict structs. #311
*Value derive macros now support optional fields in dict structs. #311✨ Implement From > & From > for Value.
From<Arc<str>> & From<Cow<str>> for Value.Value macros.winnow to 0.7.rand to 0.9.0.🐛 Prevent f32::NAN from causing panic.
🏷️ Implement Clone for *Value. #1078
winnow.rust-version to 1.80. #1107📌 Don't pin zvariant_utils dep. We don't always release zvariant_utils together with other crates, so unlike the macros crates, the versions don't nee
zvariant_utils dep. We don't always release zvariant_utils together with other
crates, so unlike the macros crates, the versions don't need to be tied together. This will also
allow us to bring zvariant_utils improvements to users without having to release all dependent
packages as well.⚡️ Signature now an enum representing the D-Bus signature in a parsed form.
Signature now an enum representing the D-Bus signature in a parsed form.Type::signature method with a const named SIGNATURE. This greatly improves the
(de)serialization performance, in some cases even up by 94%.Type for:
chrono::{Month, NaiveTime, Weekday}.camino utf-8 path types.zbus attribute in macros.Type derive macro now validates user provided signature string at compile-time.CompleteType type.Default impl for Structure. An empty structure is against the specification and we
shouldn't allow it to be created, let alone be a default value. Users should use StructureBuilder
to create a structure.Error::EmptyStructure.gvariant::Deserializer from public API.option-as-array feature.Value's Visitor implementation wasn't handling that. This resulted in us not being able
to decode back our own generated JSON in case of variants inside variants. #549Str type.nom (indirectly through zvariant_utils).zvariant_utils.✨ Add Type impl for heapless::{String, Vec}. heapless is now an optional dep.
Type impl for heapless::{String, Vec}. heapless is now an optional dep.kebab-case in rename_all attribute of SerializeDict and DeserializeDict.Str::static for ObjectPath's default value.🐛 implement Hash and Eq properly for Value::F64.
Hash and Eq properly for Value::F64.Value containing a dictionary for GVariant format. #868⬆️ Update zvariant_utils to 2.0.0.
🚸 zv: Add iterator API to Dict.
Dict.serde_repr usage for enums.🚨 Remove duplicate trait bounds.
To go with zvariant_derive 4.0.2.
To go with zvariant_derive 4.0.2.
🚑️ Fix compilation of gvariant feature on non-unix platforms.
New API breaking release. A lot of changes in this release:
New API breaking release. A lot of changes in this release:
Option<T> now de/serializable using 0 or 1 item array encoding.from_slice* now also return number of bytes parsed.Value API changes:
to_owned now fallible and renamed to try_to_owned.Clone impl replaced by fallible try_clone method.Array::get and Maybe::get's return values are now fixed.byteorder to endi crate for endian handling and indication.Value::downcast_ref now returns terget value instead of reference to it.Option<T> as an array of 0 or 1 elements.Signature changes:
Signature::n_complete_types returns the number of complete types in a Signature.Signatures are now equal regardless of D-Bus marshalling omitting outer parentheses.TryFrom<String> for OwnedSignature & TryFrom<Cow<str> for Signature impls.Dicts entries are now consistent in order which makes Dicts comparison possible.Array::get now returns a Value at an index instead of a slice with the value.Str Debug implAnd many more.
To go with zvariant_derive 3.15.2.
To go with zvariant_derive 3.15.2.
🚑️ Correct signature for Ipv4Address & Ipv6Address
🚑️ Drop 64-bit offsets support on 32-bit systems. If the native pointer size is 32-bit, then the 64-bit offset support is not needed. This also fixes
🚑️ Drop 64-bit offsets support on 32-bit systems. If the native pointer size is 32-bit, then the
64-bit offset support is not needed. This also fixes the assumption that when a 32-bit offset is
bumped, we end up with a 64-bit offset. This is not true on 32-bit systems because we use usize
for offsets, which is 32-bit on 32-bit systems. Fixes #357.
⚡️ impl From<Cow<str>> for Str.
⚡️ Drop redundant inline. Inlining request only makes sense for very small functions.
🔥 Drop support for 128-bit offsets in gvariant. This was just cool to have thing but in reality will we really need support for memory larger than 16 hexabytes? I don't think so. Not anytimne soon at least. If we do, it'd be easy to add this back.
🔥 Drop manual Default impl of EncodingFormat. After Rust 1.64, we can use the derive for this.
⬆️ Update enumflags2.
✅ Don't assume native endianness in tests. Glib always uses native endian format so we should use native endian too if we want to decode from it to test compatibility. This fixes the number-related tests on big-endian systems. Fixes #358.
♻️ Refactor some test code. Unify some value equality assertions.
⬆️ Bump our MSRV. More and more dependencies are requiring Rust 1.64.0, so let's bump our MSRV to match.
🎨 code comments should also adhere to 100 character limit.
🎨 2 tiny formatting fixes.
🎨 Make use of bool::then_some.
Add Type and Basic impl for std::NonZero* (#334).
Type and Basic impl for std::num::NonZero* (#334).Type impl for std::time::Duration (#334).Optional in the docs.Optional::default implementation. #343Encode empty structs as a null byte. D-Bus does not allow empty structures and currently we try to encode them as such. Let's not do that but instead
To go with zvariant_derive 3.12.0.
To go with zvariant_derive 3.12.0.
Display for {OwnedObjectPath, OwnedSignature}.
Display for {OwnedObjectPath, OwnedSignature}.TryFrom<Cow<'a str>> for ObjectPath.Type for std::time::SystemTime.TryFrom<Cow<'a str>> for ObjectPath.Introduce Error::InputOutput(Arc<..>) and deprecated Error::Io in favour of it.
Clone for Error.Error::InputOutput(Arc<..>) and deprecated Error::Io in favour of it.Default for Optional.Deserialize impl of OwnedObjectPath shouldn't assume borrowed string. This allows this type to be deserialized from a std::Read.
Deserialize impl of OwnedObjectPath shouldn't assume borrowed string. This allows this type to be deserialized from a std::io::Read.Type for Path and PathBuf.chrono feature that enables Type for chrono::{DateTime, NaiveTime, NaiveDateTime}.Fix link to GVariant specification.
Str now keeps owned string in an Arc so that cloning doens't imply allocation.TryFrom<Arc<str>> for Str.Bugfix release to fix a possible panic in gvariant deserialization code.
Bugfix release to fix a possible panic in gvariant deserialization code.
Remove a big bunch of panic possibilities in serializers and deserializers.
Signature::from_str_unchecked now const.Value::to_owned now a public API.Error variants:
OutOfBounds.MaxDepthExceeded.Add Type impl for common std container types.
Add Type impl for common std container types.
from_static()/from_static_str_unchecked() methods now const.
from_static()/from_static_str_unchecked() methods now const.A bugfix release to fix the uuid::Uuid signature.
A bugfix release to fix the uuid::Uuid signature.
The s signature was correct for Uuid when our (de)serializers were mistakenly marked as human-readble but after we fixed that in the last release, Uuid should be declared ay.
Implement Type for std::{IpAddr, Ipv4Addr, Ipv6Addr}.
Type for std::net::{IpAddr, Ipv4Addr, Ipv6Addr}.Micro release to go with zvariant_derive 3.3.1.
Micro release to go with zvariant_derive 3.3.1.
Eq for types implementing PartialEq.
More robust check for non-unit enum deserialization.
More robust check for non-unit enum deserialization.
Correctly (de)serialize non-unit enums.
Str.To go with bug fix zvariant_derive 3.1.2.
To go with bug fix zvariant_derive 3.1.2.
Fix some lifetimes and generics in conversions.
From<HashMap<K, V, H>> for OwnedValue`.Add Signature constructors from_static_str and from_static_bytes.
from_static_str and from_static_bytes.self taking and Self returning methods as must_use.Drop deprecated methods of Structure. People should use the StructureBuilder instead.
New API break release.
Structure. People should use the StructureBuilder instead.Basic::ALIGNMENT. This was deprecated in favor of alignment method.Error::Infallible.Type implementation.arrayvec to 0.7.enumflags2 to 0.7.1.Mark unsafe from_bytes_unchecked constructors as such. This actually breaks API but since it's a soundness fix, it's allowed in the same minor version
from_bytes_unchecked constructors as such. This actually breaks API but since it's a soundness fix, it's allowed in the same minor version.Str type from 4 to 3 pointers.Str to avoid allocations/cloning.Nothing published for this version
Nothing published for this version
One column per quarter.