This commit is contained in:
2026-05-26 23:22:32 +02:00
parent 842fca2b72
commit 730de334e0
17 changed files with 5380 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
[package]
name = "axum-server"
version = "0.1.0"
edition = "2021"
[dependencies]
axum = { version = "0.7", features = ["macros"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "sync", "net"] }
tower = "0.5"
tower-http = { version = "0.5", features = ["request-id", "auth"] }
http = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
subtle = "2"
# We deliberately use sqlx for the SQLite backing store on this side
# (rather than rusqlite) because that's the idiomatic axum/tokio choice.
# Both end up calling the same SQLite C library; what matters for the
# bench is that each framework uses the idiomatic-on-that-side option.
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite", "macros"] }
[[bin]]
name = "axum-server"
path = "src/main.rs"