#macro-derive #singleton #attributes #procedural #structure #manual #control

singleton-attr

Simple to use singleton procedural attribute and derive macro

2 releases

0.1.9 Oct 31, 2024
0.1.8 Aug 23, 2024

#1106 in Rust patterns

Download history 272/week @ 2024-08-23 33/week @ 2024-09-13 101/week @ 2024-09-27 11/week @ 2024-10-04 1/week @ 2024-10-11 69/week @ 2024-10-25 48/week @ 2024-11-01 3/week @ 2024-11-15 56/week @ 2024-12-06

59 downloads per month

MIT license

7KB
91 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–660KB
~16K SLoC