Cargo Features

hyper_wasi has no features set by default.

[dependencies]
hyper_wasi = { version = "0.15.2", features = ["full", "http1", "http2", "client", "server", "stream", "runtime", "tcp", "ffi", "nightly", "socket2"] }
default

Nothing by default

full = client, http1, http2, runtime, server, stream

Easily turn it all on

http1 full?

HTTP versions

Affects conn::Http, conn::Parts, exec::NewSvcExec

http2 full? = h2_wasi

Affects ext::Protocol, conn::Http, conn::Parts, exec::NewSvcExec

client full?

Client/Server

server full?

Affects exec::ConnStreamExec, exec::NewSvcExec

stream full?

impl Stream for things

Affects accept::from_stream

runtime full? = tcp

Tokio support

Enables rt and time of tokio_wasi

tcp runtime? = wasmedge_wasi_socket

Enables net, rt and time of tokio_wasi

ffi = libc

C-API support (currently unstable (no semver))

Affects hyper_wasi::ffi

nightly

internal features used in CI

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

h2_wasi http2?
libc ffi?

Enables libc

Optional

socket2 implicit feature

Enables socket2 ^0.4.7

socket2:

Utilities for handling networking sockets with a maximal amount of configuration possible intended

wasmedge_wasi_socket tcp?