#attributes #singleton #macro-derive #procedural #internal

nightly macro singleton-attr-proc-macro

Simple to use singleton procedural attribute and derive macro (internal implementation)

2 releases

new 0.1.9 Oct 31, 2024
0.1.8 Aug 23, 2024

#1453 in Procedural macros

Download history 256/week @ 2024-08-15 515/week @ 2024-08-22 3/week @ 2024-08-29 26/week @ 2024-09-12 2/week @ 2024-09-19 92/week @ 2024-09-26 49/week @ 2024-10-03 1/week @ 2024-10-10

142 downloads per month
Used in singleton-attr

MIT license

6KB
65 lines

singleton-attr

Simple to use singleton procedural attribute

  • singleton-attr Crates.io Version docs.rs
  • singleton-attr-proc-macro Crates.io Version docs.rs

Manual macros give more control over your structure, but derive macros are simpler to use. Check documentation and examples for details.

Dependencies

~225–670KB
~16K SLoC