Cargo Features

hyper-util-wasm has no features set by default.

[dependencies]
hyper-util-wasm = { version = "0.1.7", features = ["full", "client", "client-legacy", "server", "server-auto", "server-graceful", "service", "http1", "http2", "tokio"] }
full = client, client-legacy, http1, http2, server, server-auto, server-graceful, service, tokio

Shorthand to enable everything

client client-legacy? full?

Enables futures-channel, tower ^0.4.1, tower-service, and tracing and client of hyper

hyper:

Client/Server

Affects hyper-util-wasm::client

client-legacy full? = client

Affects client::legacy

server full? server-auto? server-graceful?

Enables server of hyper

Affects hyper-util-wasm::server

server-auto full? = http1, http2, server
server-graceful full? = server

Enables sync of tokio

Affects server::graceful

service full?

Enables tower ^0.4.1 and tower-service

Affects hyper-util-wasm::service

http1 full? server-auto?

Enables http1 of hyper

hyper:

HTTP versions

Affects auto::Http1Builder, conn::auto

http2 full? server-auto?

Enables http2 of hyper

Affects auto::HttpServerConnExec, auto::Http2Builder, conn::auto

tokio full? server-graceful?

Enables socket2 and tokio

Affects connect::dns, rt::tokio