Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nercury/di-rs

Dependency injection container for Rust
https://github.com/nercury/di-rs

Last synced: 2 months ago
JSON representation

Dependency injection container for Rust

Awesome Lists containing this project

README

        

# Rust DI

Ownership-driven Dependency Injection for Rust.

[![Build Status](https://travis-ci.org/Nercury/di-rs.svg?branch=master)](https://travis-ci.org/Nercury/di-rs)

Refactoring DI into more rusty ownership-driven architecture.

## Documentation

- [Read overview and motivation for creating this library](http://nercury.github.io/di-rs)

## Usage

__This library is being refactored.__

Put this in your `Cargo.toml`:

```toml
[dependencies]
di = "*"
```

And this in your crate root:

```rust
extern crate di;
```

## License

Licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.