runtime_injector icon indicating copy to clipboard operation
runtime_injector copied to clipboard

Runtime dependency injection in Rust

Results 5 runtime_injector issues
Sort by recently updated
recently updated
newest added

- Relaxed constraints for `ServiceFactory` - Moved `Service` constraint to the provider implementations - Result only constrained by `Any` rather than `Service` - `ServiceFactory::invoke` now takes `&self`, meaning it doesn't...

Hey, I started playing around with this DI container but I'm unable to achieve interior mutability. Could you provide some examples how that could be achieved with both `Svc` modes...

enhancement

Add a way for providers to have a scope. For example, one way a scope might be implemented is this: ```rust let scope = injector.scope(); // has Drop impl let...

enhancement

Port a slightly simplified version of the [enterprise-edition FizzBuzz solution](https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition) to Rust and provide it as an example. This should at least show a lot of use-cases for dependency injection...

documentation

Suppose a config is reloaded during execution of a program. This would allow services to be reconfigured based on the changes in that config. Currently, it's *somewhat* possible using factories:...

enhancement