Cargo Features

[dependencies]
wasmer-wasi = { version = "3.2.0-alpha.1", default-features = false, features = ["wasix", "webc_runner", "webc_runner_rt_emscripten", "webc_runner_rt_wasi", "sys", "sys-default", "sys-poll", "js", "js-default", "test-js", "host-vnet", "host-fs", "mem-fs", "logging", "disable-all-logging", "enable-serde"] }
default = sys-default

The sys-default feature is set by default whenever wasmer-wasi is added without default-features = false somewhere in the dependency tree.

wasix sys?

Affects syscalls::wasix32, syscalls::wasix64, utils::is_wasix_module

webc_runner = anyhow, serde, serde_cbor, webc

Enables webc-fs of wasmer-vfs

Affects wasmer-wasi::runners

webc_runner_rt_emscripten = wasmer-emscripten
webc_runner_rt_wasi
sys sys-default = wasix

Enables sys of wasmer =3.2.0-alpha.1 and wasmer-wasi-types

wasmer:

Features for sys.

sys-default default = host-fs, host-vnet, logging, sys, sys-poll

Enables compiler and wat of wasmer =3.2.0-alpha.1

sys-poll sys-default
js js-default? test-js? = chrono, mem-fs

Enables no-time of wasmer-vfs, js of wasmer-wasi-types and js of getrandom and wasmer =3.2.0-alpha.1

getrandom:

Feature to enable JavaScript bindings on wasm*-unknown-unknown

Affects utils::wasi_import_shared_memory

js-default = js

Enables js-default of wasmer =3.2.0-alpha.1

test-js = js

Enables js-default and wat of wasmer =3.2.0-alpha.1

host-vnet sys-default = wasmer-wasi-local-networking
host-fs sys-default

Enables host-fs of wasmer-vfs

mem-fs js?

Enables mem-fs of wasmer-vfs

logging sys-default

Enables log of tracing

disable-all-logging

Enables max_level_off and release_max_level_off of tracing

enable-serde = bincode, serde, typetag

Enables serde of generational-arena, enable-serde of wasmer-vfs and wasmer-wasi-types

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.

wasmer-wasi-local-networking host-vnet?
typetag enable-serde?

Enables typetag ^0.1

serde enable-serde? webc_runner?
bincode enable-serde?
chrono js?
webc webc_runner?

Enables webc ^4.0.0

serde_cbor webc_runner?
anyhow webc_runner?
wasmer-emscripten webc_runner_rt_emscripten?

Enables wasmer-emscripten =3.2.0-alpha.1