Crate syrette_macros
source ·Expand description
Macros for the Syrette crate.
Macros
- declare_default_factory
factory
Shortcut for declaring a default factory. - Declares the interface trait of a implementation.
Attribute Macros
- factory
factory
Makes a type alias usable as a factory interface. - Makes a type injectable.
- Used to declare the name of a dependency in the constructor of a impl block decorated with
injectable
.