#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

7 unstable releases (3 breaking)

0.4.0 Jan 7, 2025
0.3.2 Nov 6, 2024
0.3.1 Oct 8, 2024
0.3.0 Sep 24, 2024
0.1.0 Jun 24, 2024

#2276 in Procedural macros

Download history 243/week @ 2024-09-27 1179/week @ 2024-10-04 1100/week @ 2024-10-11 2185/week @ 2024-10-18 819/week @ 2024-10-25 1255/week @ 2024-11-01 1222/week @ 2024-11-08 1255/week @ 2024-11-15 951/week @ 2024-11-22 1520/week @ 2024-11-29 1060/week @ 2024-12-06 1238/week @ 2024-12-13 718/week @ 2024-12-20 1000/week @ 2024-12-27 1082/week @ 2025-01-03 997/week @ 2025-01-10

4,099 downloads per month
Used in 3 crates (via tfhe-versionable)

BSD-3-Clause-Clear

110KB
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

~215–660KB
~16K SLoC