Skip to content
/ indep Public

An attempt to make a Dependency Injection library in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

snuk182/indep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indep

Dead simple Dependency Injection library in Rust.

Documentation

The library contains support for single- and multi-threaded environments. See examples/sync.rs and examples/async.rs respectively, everything is described there.

Put the following in your Cargo.toml:

[dependencies]
indep = "*"

And the following - to the crate root:

#[macro_use]
extern crate indep;
#[macro_use]
extern crate log;

Also you will need several usage definitions:

use your_mod::{Dependency,Dependent,Implementation};

in DI-enabled trait implementations, where your_mod is module in your project where the pool creation macro is applied.

Dependencies

None except log, which is used only to trace! dependency injections.

License

  • MIT OR Apache-2.0

About

An attempt to make a Dependency Injection library in Rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages