Expand description
Noema Dependency Injection and Mediator Pattern Library for Rust
- static registries
- compile-time resolution
- Arc + LazyLock for thread-safe singletons
- macros for easy registration
- extensible via traits
§Features
- Event Dispatching
- Input/Output Mediation
- Configuration Management
- Keyed Service Registries
- Components and Factories for register and resolve complex services
- Item Collections (For Extensible Enumerations or Flags)
- Dependency Injection
Modules§
Macros§
- arc_dyn
- A helper macro to create a type alias for a dynamic trait object wrapped in an Arc. Arc<dyn Trait + Send + Sync>
- components
- Macro to define multiple singleton dependencies
- configs
- Macro to define configuration singletons ALL TYPES MUST IMPLEMENT Configuration TRAIT and Default TRAIT
- factories
- Macro to define multiple factory dependencies
- shared_
dyn - A helper macro to create a type alias for a dynamic trait object that is Send and Sync. dyn Trait + Send + Sync