hypospray

Crates.iohypospray
lib.rshypospray
version0.1.2
sourcesrc
created_at2017-01-27 16:59:10.060427
updated_at2017-01-27 20:08:00.337413
descriptionLightweight dependency injection library
homepage
repositoryhttps://github.com/jonysy/hypospray
max_upload_size
id8252
size16,487
(jonysy)

documentation

https://docs.rs/hypospray

README

Hypospray

A lightweight dependency injection library

License

What is Dependency Injection?

5-minute introduction.

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:

Commit count: 40

cargo fmt