Skip to content

Commit b948573

Browse files
committed
chore(deps): [#426] add cargo dependencies to use a custom axum server with timeouts
Two levels of wrappers for the Axum server: Custom (with timeouts) -> axum-server -> axum
1 parent bcebcab commit b948573

File tree

3 files changed

+90
-4
lines changed

3 files changed

+90
-4
lines changed

Cargo.lock

+81-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ anyhow = "1.0.81"
3737
argon2 = "0"
3838
async-trait = "0"
3939
axum = { version = "0", features = ["multipart"] }
40+
axum-server = { version = "0", features = ["tls-rustls"] }
4041
binascii = "0"
4142
bytes = "1"
4243
chrono = { version = "0", default-features = false, features = ["clock"] }
@@ -46,15 +47,19 @@ derive_more = "0"
4647
email_address = "0"
4748
fern = "0"
4849
futures = "0"
50+
futures-util = "0.3.30"
4951
hex = "0"
5052
http = "1.1.0"
53+
http-body = "1.0.0"
5154
hyper = "1"
55+
hyper-util = { version = "0.1.3", features = ["http1", "http2", "tokio"] }
5256
indexmap = "2"
5357
jsonwebtoken = "9"
5458
lazy_static = "1.4.0"
5559
lettre = { version = "0", features = ["builder", "smtp-transport", "tokio1", "tokio1-native-tls", "tokio1-rustls-tls"] }
5660
log = "0"
5761
pbkdf2 = { version = "0", features = ["simple"] }
62+
pin-project-lite = "0.2"
5863
rand = "0"
5964
rand_core = { version = "0", features = ["std"] }
6065
regex = "1"
@@ -74,6 +79,7 @@ thiserror = "1"
7479
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "rt-multi-thread", "signal", "sync", "time"] }
7580
toml = "0"
7681
torrust-index-located-error = { version = "3.0.0-alpha.3-develop", path = "packages/located-error" }
82+
tower = { version = "0.4", features = ["timeout"] }
7783
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
7884
trace = "0.1.7"
7985
tracing = "0.1.40"

project-words.txt

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Dont
2525
dotless
2626
dtolnay
2727
elif
28+
Eray
2829
grcov
2930
Grünwald
3031
hasher
@@ -39,6 +40,7 @@ indexmap
3940
infohash
4041
Intermodal
4142
jsonwebtoken
43+
Karatay
4244
leechers
4345
Leechers
4446
LEECHERS
@@ -59,6 +61,7 @@ oneshot
5961
openbittorrent
6062
opentrackr
6163
ppassword
64+
programatik
6265
proxied
6366
rapppid
6467
reqwest

0 commit comments

Comments
 (0)