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

nightly singleton-attr

Simple to use singleton procedural attribute and derive macro

1 unstable release

0.1.8 Aug 23, 2024
0.1.7 Aug 22, 2024

#909 in Rust patterns

Download history 251/week @ 2024-08-15 485/week @ 2024-08-22

736 downloads per month

MIT license

7KB
93 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

~245–690KB
~16K SLoC