Add MongoDB example (#2535)

This commit is contained in:
Mobin Mohanan
2024-09-28 13:03:52 +02:00
committed by GitHub
parent e784977aa6
commit 4d9017af7e
2 changed files with 145 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "example-mongodb"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum" }
mongodb = "2.8.0"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
tower-http = { version = "0.5.0", features = ["add-extension", "trace"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }