rust-ioc
rust-ioc copied to clipboard
Playground for dependency injection in Rust
In rust-ioc we need to resolve any dependency semi-manually: ```rust fn resolve((x, y): Self::Dependency) -> Self { Z { x: x.into_inner(), y: y.into_inner(), } } ``` In C# [ninject](http://www.ninject.org/) we...
I'm playing with some ideas for a simpler DI approach that doesn't need any extra framework. The idea is to be nothing special. Right now it's based on a few...
Create a container that can scope from another one, where the upstream references are available for the lifetime of the child scope.