All notable changes to this project are documented in this file, based on Keep a Changelog.
0.2.2 - 2024-09-18
- Make error documentation more precise and add error handling section.
- Use
LazyLock
instead ofLazy
fromonce_cell
in examples. - Document features and mark them as experimental/work-in-progress.
- Add an example showing a custom registry implementation that ignores duplicate registrations.
0.2.1 - 2024-03-16
- Prevent infinite recursion by checking that trait objects implement
erased_serde::Serialize
, using the same trick from theerased_serde::serialize_trait_object
macro.
0.2.0 - 2024-02-03
Registry
is now a trait, with a single built-in implementation:MapRegistry
.- The type of identifiers is now generic, defaulting to
&'static str
. deserialize_trait_object
is now a method onRegistry
.
- Added convenience
register_type
andregister_id_type
methods toRegistry
.