Using library and removed common functions (#3)

* Added lib from git and removed code which is in lib now

* NormalizePathLayer to remove trailing slash
This commit is contained in:
Martin Berg Alstad
2024-06-22 17:33:33 +02:00
committed by GitHub
parent e7f1ae156d
commit 4b6608fd4f
20 changed files with 41 additions and 426 deletions

View File

@ -8,16 +8,14 @@ authors = ["Martin Berg Alstad"]
# Parsing
nom = "7.1.3"
# Async
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread", "fs"] }
tokio-util = { version = "0.7.11", features = ["io"] }
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] }
# Serialization / Deserialization
serde = { version = "1.0.203", features = ["derive", "rc"] }
# API
axum = { version = "0.7.5", features = ["macros"] }
tower-http = { version = "0.5.2", features = ["cors", "trace"] }
tower-http = { version = "0.5.2", features = ["cors", "trace", "normalize-path"] }
# Logging
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
# Derive macros
derive = { path = "derive" }
lib = { git = "https://github.com/emberal/rust-lib.git", tag = "1.0.0", features = ["axum", "vec", "nom", "serde", "derive"] }