dbus2 / zbus

Rust D-Bus crate.
Other
359 stars 82 forks source link

🐛 zv: Fix dictionary entry serialization from Values #870

Closed felinira closed 3 months ago

felinira commented 3 months ago

Dictionaries with variable length keys require a framing offset. The SerializeMap implementation already handles this, the manual serialization of dict entries used by Value does not. We now call directly into SerializeMap when serializing Value to align these serializations.

Unfortunately this requires adding two new methods to Value, similar to serialize_value_as_seq_element et al. To balance it out, we can remove DictEntry.

Closes #868