switched to axum, added BIND_ADDR env var

This commit is contained in:
uh wot 2022-08-16 20:36:15 +02:00
parent ae75a24129
commit 6a4bec9e70
Signed by: uhwot
GPG key ID: CB2454984587B781
4 changed files with 288 additions and 734 deletions

View file

@ -6,10 +6,12 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4.0"
actix-cors = "0.6"
axum = "0.5"
http = "0.2"
tower-http = { version = "0.3", features = ["cors", "trace", "compression-br", "compression-deflate", "compression-gzip"] }
tracing-subscriber = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json", "rustls-tls", "cookies", "gzip"], default-features = false }
serde_json = "1.0"
thiserror = "1.0"
env_logger = "0.9"
thiserror = "1.0"