Hypospray
A lightweight dependency injection library
What is Dependency Injection?
Goals
- Focused, reusable, testable components
- A dependency graph checked at compile time
Cyclic Dependency
DI is not for circular dependency resolution: Circular dependency is something that is to be avoided.
Quick-start
Documentation
Version Info.
)
)
Usage
To use hypospray
, add the following to Cargo.toml
:
[]
= "0.1.0"
= "0.1.0"
Then, add the following to your crate root:
extern crate hypospray;
..
License
Licensed under either:
- Apache License, Version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)