Use axum-server for direct TLS support

This commit is contained in:
Jonas Platte 2022-01-22 18:38:39 +01:00
parent 5fa9190117
commit c8951a1d9c
No known key found for this signature in database
GPG key ID: 7D261D771D915378
4 changed files with 57 additions and 10 deletions

28
Cargo.lock generated
View file

@ -58,6 +58,12 @@ dependencies = [
"winapi",
]
[[package]]
name = "arc-swap"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f"
[[package]]
name = "arrayref"
version = "0.3.6"
@ -162,6 +168,26 @@ dependencies = [
"mime",
]
[[package]]
name = "axum-server"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9cfd9dbe28ebde5c0460067ea27c6f3b1d514b699c4e0a5aab0fb63e452a8a8"
dependencies = [
"arc-swap",
"bytes",
"futures-util",
"http",
"http-body",
"hyper",
"pin-project-lite",
"rustls",
"rustls-pemfile",
"tokio",
"tokio-rustls",
"tower-service",
]
[[package]]
name = "base64"
version = "0.12.3"
@ -365,6 +391,7 @@ name = "conduit"
version = "0.3.0"
dependencies = [
"axum",
"axum-server",
"base64 0.13.0",
"bytes",
"clap",
@ -375,7 +402,6 @@ dependencies = [
"heed",
"hmac",
"http",
"hyper",
"image",
"jsonwebtoken",
"lru-cache",