New approach to dependency injection for 1.x

This commit is contained in:
Diggory Blake 2023-07-02 00:07:15 +01:00
parent e94a833eaf
commit f8ebe14790
No known key found for this signature in database
GPG key ID: E6BDFA83146ABD40
17 changed files with 840 additions and 822 deletions

View file

@ -1,12 +1,25 @@
[package]
name = "aerosol"
version = "0.3.0"
version = "1.0.0-alpha.1"
authors = ["Diggory Blake <diggsey@googlemail.com>"]
edition = "2018"
description = "Dependency injection with compile-time guarantees"
description = "Simple dependency injection for Rust"
repository = "https://github.com/Diggsey/aerosol"
license = "MIT OR Apache-2.0"
[features]
default = []
async = ["async-trait"]
axum = ["dep:axum", "async", "tracing", "thiserror", "anyhow"]
[dependencies]
tt-call = "1.0"
anyhow = "1"
parking_lot = "0.12.1"
anymap = { version = "1.0.0-beta.2", features = ["hashbrown"] }
async-trait = { version = "0.1", optional = true }
axum = { version = "0.6", optional = true }
tracing = { version = "0.1", optional = true }
thiserror = { version = "1.0", optional = true }
anyhow = { version = "1.0", optional = true }
[dev-dependencies]
tokio = { version = "1.0", features = ["macros"] }