Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nercury/di-rs
- Owner: Nercury
- License: apache-2.0
- Created: 2014-11-23T13:48:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T00:44:20.000Z (over 3 years ago)
- Last Synced: 2024-11-16T15:38:51.260Z (2 months ago)
- Language: Rust
- Size: 701 KB
- Stars: 39
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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.