supply 0.2.0

Provider API for arbitrary number of lifetimes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use supply::prelude::*;
use supply::provide::ProvideTag;

#[test]
fn exibit_1() {
    assert_eq!(
        ProvideTag::<l![], _>::from_ref(&123)
            .request::<&i32>()
            .unwrap(),
        &123
    );
}