Skip to content

Commit

Permalink
Make hyper-util, http-body-util optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshia001 committed Jul 11, 2024
1 parent e20857a commit fdfd6a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/virtual-net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ hyper = { workspace = true, optional = true }
tokio-tungstenite = { version = "0.21", optional = true }
rkyv = { workspace = true, optional = true }
bytecheck = { version = "0.6.8", optional = true }
hyper-util = { version = "0.1.5", features = ["tokio"] }
hyper-util = { version = "0.1.5", features = ["tokio"], optional = true }

[dependencies.smoltcp]
version = "0.8"
Expand All @@ -52,7 +52,7 @@ remote = [ "libc", "tokio/io-util", "tokio/sync", "tokio-serde", "tokio-util" ]
json = [ "tokio-serde/json" ]
messagepack = [ "tokio-serde/messagepack" ]
cbor = [ "tokio-serde/cbor" ]
hyper = [ "hyper-tungstenite", "dep:hyper" ]
hyper = [ "hyper-tungstenite", "hyper-util", "dep:hyper" ]
tokio-tungstenite = [ "dep:tokio-tungstenite" ]
rkyv = [ "dep:rkyv", "dep:bytecheck" ]

Expand Down
6 changes: 3 additions & 3 deletions lib/wasix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ web-sys = { version = "0.3.64", features = [
], optional = true }
ahash = "0.8.11"
hyper-util = { version = "0.1.5", features = ["server", "server-graceful", "tokio", "service", "client"], optional = true }
http-body-util = "0.1.1"
http-body-util = { version="0.1.1", optional = true }

[target.'cfg(not(target_arch = "riscv64"))'.dependencies.reqwest]
workspace = true
Expand Down Expand Up @@ -149,9 +149,9 @@ default = ["sys-default"]
time = ["tokio/time"]
ctrlc = ["tokio/signal"]

webc_runner_rt_wcgi = ["hyper", "hyper-util", "wcgi", "wcgi-host", "tower", "tower-http"]
webc_runner_rt_wcgi = ["hyper", "hyper-util", "http-body-util", "wcgi", "wcgi-host", "tower", "tower-http"]
webc_runner_rt_dcgi = ["webc_runner_rt_wcgi", "journal"]
webc_runner_rt_dproxy = ["hyper", "hyper-util", "tower", "tower-http", "journal"]
webc_runner_rt_dproxy = ["hyper", "hyper-util", "http-body-util", "tower", "tower-http", "journal"]
webc_runner_rt_emscripten = ["wasmer-emscripten"]

sys = ["webc/mmap", "time", "virtual-mio/sys"]
Expand Down

0 comments on commit fdfd6a8

Please sign in to comment.