Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.5 KB

CHANGELOG.md

File metadata and controls

44 lines (29 loc) · 1.5 KB

Changelog

All notable changes to this project are documented in this file, based on Keep a Changelog.

0.2.2 - 2024-09-18

Changed

  • Make error documentation more precise and add error handling section.
  • Use LazyLock instead of Lazy from once_cell in examples.
  • Document features and mark them as experimental/work-in-progress.

Added

  • Add an example showing a custom registry implementation that ignores duplicate registrations.

0.2.1 - 2024-03-16

Fixed

  • Prevent infinite recursion by checking that trait objects implement erased_serde::Serialize, using the same trick from the erased_serde::serialize_trait_object macro.

0.2.0 - 2024-02-03

Changed

  • 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 on Registry.

Added

  • Added convenience register_type and register_id_type methods to Registry.

References