mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Add a diesel and diesel-async example (#1853)
Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
9b1f1a907b
commit
9da1897688
@@ -0,0 +1,17 @@
|
||||
[package]
|
||||
name = "example-diesel-async-postgres"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
axum-macros = { path = "../../axum-macros" }
|
||||
bb8 = "0.8"
|
||||
diesel = "2"
|
||||
diesel-async = { version = "0.2", features = ["postgres", "bb8"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
Reference in New Issue
Block a user