AppBuilder for Axum

This commit is contained in:
Martin Berg Alstad
2024-06-26 10:20:52 +02:00
parent d5974dda20
commit 83f85f1938
3 changed files with 290 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "lib"
version = "1.0.0"
version = "1.1.0"
edition = "2021"
authors = ["Martin Berg Alstad"]
@ -9,9 +9,14 @@ authors = ["Martin Berg Alstad"]
[dependencies]
# Api
axum = { version = "0.7.5", optional = true }
tower = { version = "0.4.13", optional = true }
tower-http = { version = "0.5.2", optional = true, features = ["trace", "cors", "normalize-path"] }
# Async
tokio = { version = "1.38.0", optional = true, features = ["fs"] }
tokio-util = { version = "0.7.11", optional = true, features = ["io"] }
# Logging
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
# Parsing
nom = { version = "7.1.3", optional = true }
# Serialization / Deserialization
@ -20,7 +25,7 @@ serde = { version = "1.0.203", optional = true, features = ["derive"] }
derive = { path = "derive", optional = true }
[features]
axum = ["dep:axum"]
axum = ["dep:axum", "dep:tower", "dep:tower-http"]
tokio = ["dep:tokio", "dep:tokio-util"]
vec = []
nom = ["dep:nom"]