#versioning #proc-macro #serialization #encoding #derive

macro tfhe-versionable-derive

tfhe-versionable-derive: A set of proc macro for easier implementation of the tfhe-versionable traits

8 releases (4 breaking)

0.5.0 Feb 18, 2025
0.4.0 Jan 7, 2025
0.3.2 Nov 6, 2024
0.3.1 Oct 8, 2024
0.1.0 Jun 24, 2024

#2325 in Procedural macros

Download history 1279/week @ 2024-11-18 829/week @ 2024-11-25 1672/week @ 2024-12-02 978/week @ 2024-12-09 1295/week @ 2024-12-16 604/week @ 2024-12-23 979/week @ 2024-12-30 1266/week @ 2025-01-06 1416/week @ 2025-01-13 2186/week @ 2025-01-20 1513/week @ 2025-01-27 1206/week @ 2025-02-03 1656/week @ 2025-02-10 2065/week @ 2025-02-17 1942/week @ 2025-02-24 1661/week @ 2025-03-03

7,417 downloads per month
Used in 10 crates (via tfhe-versionable)

BSD-3-Clause-Clear

115KB
2K SLoC

Set of derive macro to automatically implement the Versionize and Unversionize traits. The macro defined in this crate are:

  • Versionize: should be derived on the main type that is used in your code
  • Version: should be derived on a previous version of this type
  • VersionsDispatch: should be derived ont the enum that holds all the versions of the type
  • NotVersioned: can be used to implement Versionize for a type that is not really versioned

Dependencies

~200–630KB
~15K SLoC