1 unstable release

0.1.0 Feb 18, 2023

#88 in #label

Download history 1/week @ 2024-02-12 22/week @ 2024-02-19 23/week @ 2024-02-26 16/week @ 2024-03-04 18/week @ 2024-03-11 16/week @ 2024-03-18

74 downloads per month
Used in dbent

MIT/Apache

11KB
217 lines

dbent-derive - procedural macros for dbent

This crate defines two procedural macros that generate implementations for the Keyed and Label traits.

The Entity macro generates an implementation of the Keyed trait, which requires a type to have a dbent::Key<T> as its first field.

The Label macro generates an implementation of the Label trait, which requires a type to mark a Display-friendly field as #[label].

Dependencies

~1.5MB
~34K SLoC