Skip to content

v0.4.0

Compare
Choose a tag to compare
@fdeantoni fdeantoni released this 10 Jan 14:52
· 52 commits to master since this release

Breaking Changes

MOPA Removed

Removed dependency on unmaintained crate mopa. Version 0.2.2 contains an unsound implementation (see 13) which was addressed in the git repo, but was never published to crates.io.

To remove the dependency on the mopa crate, MessageSerde now implements the needed functions directly. The implementation has been directly copied from std::any::Any. As a consequence though, two methods are no longer by available on dyn MessageSerde which were originally provided by mopa, but are not part of std::any::Any:

  • downcast
  • downcast_unchecked

If you used any of the above methods, please use downcast_ref and downcast_ref_unchecked instead.

Deprecated Methods Removed

The deprecated method encoded has also been removed. Please use try_encoded instead.