3 releases
Uses old Rust 2015
0.1.2 | Jan 27, 2017 |
---|---|
0.1.1 | Jan 27, 2017 |
0.1.0 | Jan 27, 2017 |
#9 in #inversion-of-control
67 downloads per month
Used in vertx-rust
13KB
217 lines
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.
$ rustup -V
rustup 1.0.0 (17b6d21 2016-12-15)
$ rustc -V
rustc 1.16.0-nightly (7821a9b99 2017-01-23)
Usage
To use hypospray
, add the following to Cargo.toml
:
[dependencies]
hypospray = "0.1.0"
hypospray_extensions = "0.1.0"
Then, add the following to your crate root:
#![feature(plugin)]
#![plugin(hypospray_extensions)]
extern crate hypospray;
..
License
Licensed under either:
- Apache License, Version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)