mirror of
https://github.com/TECHNOFAB11/aerosol.git
synced 2025-12-11 23:50:07 +01:00
Prepare for publishing
This commit is contained in:
parent
37a4b43a29
commit
61230f5ef7
2 changed files with 3 additions and 10 deletions
|
|
@ -3,6 +3,9 @@ name = "aerosol"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Diggory Blake <diggsey@googlemail.com>"]
|
authors = ["Diggory Blake <diggsey@googlemail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
description = "Dependency injection with compile-time guarantees"
|
||||||
|
repository = "https://github.com/Diggsey/aerosol"
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tt-call = "1.0"
|
tt-call = "1.0"
|
||||||
|
|
|
||||||
10
src/lib.rs
10
src/lib.rs
|
|
@ -19,13 +19,3 @@ pub trait Factory {
|
||||||
pub trait ProvideWith<T>: Provide<T> + Sized {
|
pub trait ProvideWith<T>: Provide<T> + Sized {
|
||||||
fn provide_with<E, F: FnOnce(T) -> Result<T, E>>(&self, f: F) -> Result<Self, E>;
|
fn provide_with<E, F: FnOnce(T) -> Result<T, E>>(&self, f: F) -> Result<Self, E>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
#[test]
|
|
||||||
fn it_works() {
|
|
||||||
assert_eq!(2 + 2, 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue