use hyper-util-wasm crate instead of git

This commit is contained in:
Toshit Chawda 2024-02-07 19:27:16 -08:00
parent 747ec0eb12
commit 13d512a7b4
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 27 additions and 3 deletions

22
Cargo.lock generated
View file

@ -746,6 +746,26 @@ dependencies = [
"wasmtimer", "wasmtimer",
] ]
[[package]]
name = "hyper-util-wasm"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d75266d8a7846ac2878c0337387caeb96b75d7a2ebe58317611df0f8f0861ee"
dependencies = [
"bytes",
"futures-channel",
"futures-util",
"http",
"http-body",
"hyper",
"pin-project-lite",
"tower",
"tower-service",
"tracing",
"wasm-bindgen",
"wasmtimer",
]
[[package]] [[package]]
name = "indexmap" name = "indexmap"
version = "2.2.2" version = "2.2.2"
@ -1868,7 +1888,7 @@ dependencies = [
"futures", "futures",
"futures-util", "futures-util",
"hyper", "hyper",
"hyper-util 0.1.3 (git+https://github.com/r58Playz/hyper-util-wasm)", "hyper-util-wasm",
"pin-project-lite", "pin-project-lite",
"tokio", "tokio",
"tower-service", "tower-service",

View file

@ -1,6 +1,10 @@
[package] [package]
name = "wisp-mux" name = "wisp-mux"
version = "1.0.0" version = "1.0.0"
description = "A library for easily creating Wisp servers and clients."
homepage = "https://github.com/MercuryWorkshop/epoxy-tls/tree/multiplexed/wisp"
repository = "https://github.com/MercuryWorkshop/epoxy-tls/tree/multiplexed/wisp"
readme = "https://github.com/MercuryWorkshop/epoxy-tls/tree/multiplexed/wisp/README.md"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
@ -11,7 +15,7 @@ fastwebsockets = { version = "0.6.0", features = ["unstable-split"], optional =
futures = "0.3.30" futures = "0.3.30"
futures-util = "0.3.30" futures-util = "0.3.30"
hyper = { version = "1.1.0", optional = true } hyper = { version = "1.1.0", optional = true }
hyper-util = { git = "https://github.com/r58Playz/hyper-util-wasm", features = ["client", "client-legacy"], optional = true } hyper-util-wasm = { version = "0.1.3", features = ["client", "client-legacy"], optional = true }
pin-project-lite = "0.2.13" pin-project-lite = "0.2.13"
tokio = { version = "1.35.1", optional = true, default-features = false } tokio = { version = "1.35.1", optional = true, default-features = false }
tower-service = { version = "0.3.2", optional = true } tower-service = { version = "0.3.2", optional = true }
@ -21,5 +25,5 @@ ws_stream_wasm = { version = "0.7.4", optional = true }
fastwebsockets = ["dep:fastwebsockets", "dep:tokio"] fastwebsockets = ["dep:fastwebsockets", "dep:tokio"]
ws_stream_wasm = ["dep:ws_stream_wasm"] ws_stream_wasm = ["dep:ws_stream_wasm"]
tokio_io = ["async_io_stream/tokio_io"] tokio_io = ["async_io_stream/tokio_io"]
hyper_tower = ["dep:tower-service", "dep:hyper", "dep:tokio", "dep:hyper-util"] hyper_tower = ["dep:tower-service", "dep:hyper", "dep:tokio", "dep:hyper-util-wasm"]