Add dependency injection example (#2466)

This commit is contained in:
David Pedersen
2023-12-30 18:11:33 +01:00
committed by GitHub
parent c34041510c
commit 3b43b257e7
2 changed files with 182 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
[package]
name = "example-dependency-injection"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum", features = ["tracing", "macros"] }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
uuid = { version = "1.0", features = ["serde", "v4"] }