Skip to content

0.0.43

Compare
Choose a tag to compare
@udoprog udoprog released this 16 May 09:42
· 620 commits to main since this release

Added

  • Added support for #[musli(encode_only)] and #[musli(decode_only)] meta attributes, which limits an attribute's scope to the implementation of the Encode and Decode traits respectively.

Changed

  • When implementing Encoder and Decoder it is now required that the implementations are annoted with #[musli::encoder] and #[musli::decoder] respectively. This is necessary to polyfill associated type defaults since associated_type_defaults is not yet supported in stable Rust. This is necessary to ensure backwards compatibility as the traits evolve and is a prerequisite towards start moving this library towards stabilisation #10.