Skip to main content

Crate nest_rs_macros

Crate nest_rs_macros 

Source
Expand description

Surface-agnostic nestrs decorators (#[injectable], #[hooks], #[module]), re-exported by nestrs-core. Each #[proc_macro_attribute] entry below is a thin delegation to its implementation module.

Attribute Macros§

hooks
Declare application lifecycle hooks on a provider’s impl block, for the module/application init and shutdown phases.
injectable
Mark a struct as a DI provider built from the container.
module
#[module(imports = [...], providers = [...])].