Skip to main content

Crate auto_di

Crate auto_di 

Source

Structs§

Container
Lazy
Provider
RequestContext
ResolutionContext

Enums§

DiError
Scope

Traits§

ConfigurationProperties

Functions§

global_container
resolve

Type Aliases§

BoxFuture
DynArc

Attribute Macros§

application
Boots the global context, creates eager beans, and runs shutdown hooks.
bean
Registers a standalone bean, or is consumed as a bean marker when nested inside a #[configuration] impl.
beans
Registers #[bean] methods from any ordinary impl block. The owner is a singleton created through Default, allowing &self bean methods.
component
configuration
Registers all #[bean] methods in an inherent impl as singleton providers. The configuration object is itself a singleton created through Default.
configuration_properties
Generates environment binding and registers the resulting struct as a bean.
qualifier
Marker consumed from constructor parameters by the surrounding provider macro.
repository
service
singleton
Registers a lazily-created singleton provider.