Skip to content

Commit 8d34578

Browse files
committed
Update hyper
Introduces two new dependencies, hyper-util and http-body-util, both official crates under the `hyperium` github org, and drops the `hyperlocal` dependency that is no longer necessary (UNIX socket binding can now be done directly with tokio).
1 parent aa77bbe commit 8d34578

3 files changed

Lines changed: 215 additions & 102 deletions

File tree

Cargo.lock

Lines changed: 71 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ sysconf = ">=0.3.4"
6060
time = { version = "0.3", features = ["formatting"] }
6161
tiny_http = "0.12.0"
6262
url = "2.2.0"
63-
hyper = "0.14"
64-
hyperlocal = "0.8"
65-
# close to same tokio version as dependent by hyper v0.14 and hyperlocal 0.8 -- things can go awry if they mismatch
66-
tokio = { version = "1", features = ["sync", "macros", "rt-multi-thread", "rt"] }
63+
hyper = { version = "1", features = ["http1", "server"] }
64+
hyper-util = { version = "0.1", features = ["tokio", "http1", "server-graceful"] }
65+
http-body-util = "0.1"
66+
tokio = { version = "1", features = ["sync", "macros", "rt-multi-thread", "rt", "net", "time"] }
6767
opentelemetry = { version = "0.20.0", features = ["rt-tokio"], optional = true }
6868
tracing-opentelemetry = { version = "0.21.0", optional = true }
6969
opentelemetry-otlp = { version = "0.13.0", default-features = false, features = ["http-proto", "reqwest-client"], optional = true }

0 commit comments

Comments
 (0)