#typenum #uuid #integer #proc-macro #memquery #tylisp

macro typenum-uuid

A procedural macro to generate and encode UUIDs as typenum integers

1 unstable release

0.1.0 May 22, 2021

#18 in #typenum


Used in 2 crates (via tylisp)

MIT/Apache

8KB
87 lines

A crate to generate typesystem-level UUIDs

By default, all of the macros produce ::typenum::Unsigned types. If typenum is located somewhere else, you can append | path::to::typenum to the macro argument, and it will use that prefix instead:

use ::typenum as some_other_name;
type ID = uuid_new_v4!( | some_other_name );

This feature is most useful when exporting macros from a crate that relies on typenum: the UUIDs can be made to use your crate's re-export of typenum, in case your users have an incompatible version.

Dependencies

~265–425KB