Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/img/logo-di.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ path = "lib/lib.rs"
# utils
"utils" = []
"utils.threads" = ["utils", "macros", "dep:log"]

# service container
"di" = []

[dependencies]
# default
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ several features and "sub-features".
## Main features

- [x] [cli](lib/cli)&nbsp;&nbsp;<a href="#"><img alt="has subfeatures" src=".github/img/icon-has-submodules.svg" height="12"></a>
- [x] [di](lib/di)
- [x] [logging](lib/logger)
- [x] [macros](lib/macros)
- [x] [sched](lib/sched)&nbsp;&nbsp;<a href="#"><img alt="has subfeatures" src=".github/img/icon-has-submodules.svg" height="12"></a>
Expand Down
24 changes: 24 additions & 0 deletions lib/di/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<p align="center"><img src="../../.github/img/logo-di.svg" width="200"></p>

<br>
<br>
<br>

<p align="center">
<b>lool » <code>di</code></b> contains utilities for working with dependency injection in Rust.
</p>


<br>
<br>
<br>

# Installation

This library is for internal use. And as such, it's only published privately.

```bash
cargo add lool --registry=lugit --features di
```

# Usage
3 changes: 3 additions & 0 deletions lib/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#[cfg(feature = "cli")]
pub mod cli;

#[cfg(feature = "di")]
pub mod di;

#[cfg(feature = "sched")]
pub mod sched;

Expand Down