#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)

new 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

#2338 in Procedural macros

Download history 944/week @ 2024-10-30 1476/week @ 2024-11-06 1121/week @ 2024-11-13 1053/week @ 2024-11-20 1201/week @ 2024-11-27 1376/week @ 2024-12-04 1101/week @ 2024-12-11 1114/week @ 2024-12-18 890/week @ 2024-12-25 680/week @ 2025-01-01 1360/week @ 2025-01-08 1665/week @ 2025-01-15 2202/week @ 2025-01-22 1182/week @ 2025-01-29 1435/week @ 2025-02-05 1601/week @ 2025-02-12

6,726 downloads per month
Used in 3 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

~210–650KB
~15K SLoC