docs.rs failed to build di-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Dependency Injection container for Rust
This library implements dependency injection container for Rust mimicking the way it is done in other languages and frameworks.
It differs from other popular implementations by providing
a simple way to group factories together using one_of
method.
Example
let mut registry = new;
registry
.one_of
.with_id
.insert;
registry
.one_of
.with_arg
.insert;
match registry.compile
Of course, ungrouped dependencies are also available.
Documentation
Usage
Put this in your Cargo.toml
:
[]
= "*"
And this in your crate root:
extern crate di;
License
MIT