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

macro tfhe-versionable-derive

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

3 unstable releases

0.2.1 Aug 14, 2024
0.2.0 Jul 17, 2024
0.1.0 Jun 24, 2024

#1944 in Procedural macros

Download history 263/week @ 2024-06-22 160/week @ 2024-06-29 201/week @ 2024-07-06 276/week @ 2024-07-13 214/week @ 2024-07-20 303/week @ 2024-07-27 279/week @ 2024-08-03 281/week @ 2024-08-10 161/week @ 2024-08-17 186/week @ 2024-08-24 211/week @ 2024-08-31

871 downloads per month
Used in 2 crates (via tfhe-versionable)

BSD-3-Clause-Clear

79KB
1.5K 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

~250–700KB
~17K SLoC