Crates.io | hypospray |
lib.rs | hypospray |
version | 0.1.2 |
source | src |
created_at | 2017-01-27 16:59:10.060427 |
updated_at | 2017-01-27 20:08:00.337413 |
description | Lightweight dependency injection library |
homepage | |
repository | https://github.com/jonysy/hypospray |
max_upload_size | |
id | 8252 |
size | 16,487 |
A lightweight dependency injection library
DI is not for circular dependency resolution: Circular dependency is something that is to be avoided.
$ rustup -V
rustup 1.0.0 (17b6d21 2016-12-15)
$ rustc -V
rustc 1.16.0-nightly (7821a9b99 2017-01-23)
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;
..
Licensed under either: