2 stable releases

1.0.3 Mar 20, 2023

#304 in #id

Download history 1/week @ 2024-05-28 1/week @ 2024-06-11 1/week @ 2024-06-18 2/week @ 2024-06-25 1/week @ 2024-07-30

52 downloads per month
Used in 2 crates (via with-id)

MIT license

9KB
151 lines

With id derive

Derive macros for with-id crate. See docs for with-id.

Implementation details

  • When deriving implementation for WithRefId, for String field macro will generate &str return type, so type of derived implementation will be WithRefId<str>, not WithRefId<String>
  • Macro does not check if type implements ToString (in case of WithStringId) and Clone in case of WithId, and will fail if it doesn't

Dependencies

~255–700KB
~17K SLoC