Cargo Features

[dependencies]
wasmer-wasix = { version = "0.18.4", default-features = false, features = ["time", "ctrlc", "webc_runner_rt_wcgi", "webc_runner_rt_dcgi", "webc_runner_rt_dproxy", "webc_runner_rt_emscripten", "sys", "sys-default", "sys-poll", "sys-thread", "journal", "compiler", "js", "js-default", "test-js", "host-vnet", "host-threads", "host-reqwest", "host-fs", "remote-vnet", "logging", "disable-all-logging", "enable-serde", "rayon"] }
default = sys-default

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

time sys?

Enables tokio

ctrlc sys-default

Enables signal of tokio

webc_runner_rt_wcgi webc_runner_rt_dcgi? = hyper, tower, tower-http, wcgi, wcgi-host

Affects runners::wcgi

webc_runner_rt_dcgi = journal, webc_runner_rt_wcgi

Affects runners::dcgi

webc_runner_rt_dproxy = hyper, journal, tower, tower-http

Affects runners::dproxy

webc_runner_rt_emscripten = wasmer-emscripten

Affects runners::emscripten

sys sys-default = time

Enables sys of virtual-mio and mmap of webc

webc:

No longer used

sys-default default = ctrlc, host-fs, host-reqwest, host-threads, host-vnet, journal, logging, sys, sys-poll, sys-thread
sys-poll sys-default
sys-thread sys-default = rusty_pool

Enables rt-multi-thread of tokio

Affects task_manager::tokio

journal sys-default webc_runner_rt_dcgi? webc_runner_rt_dproxy?

Enables fs of tokio, log-file of wasmer-journal

Affects process::WasiProcessInner.snapshot_on, process::WasiProcessInner.snapshot_memory_hash, runtime::Runtime.journals, runtime::Runtime.active_journal, runtime::PluggableRuntime.journals, env::WasiEnvInit.snapshot_on, maybe_snapshot::maybe_snapshot, maybe_snapshot_many::maybe_snapshot_many, maybe_snapshot_once::maybe_snapshot_once, restore_snapshot::restore_snapshot, utils::map_snapshot_err

compiler

Deprecated. Kept it for compatibility

js js-default? test-js? = chrono, js-sys, wasm-bindgen, wasm-bindgen-futures, web-sys

Enables no-time of virtual-fs and js of getrandom

getrandom:

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

js-default = js
test-js = js

Enables wasmer

host-vnet sys-default

Enables host-net of virtual-net

host-threads sys-default
host-reqwest sys-default = reqwest

Affects http::reqwest

host-fs sys-default

Enables host-fs of virtual-fs

remote-vnet

Enables remote of virtual-net

logging sys-default

Enables log of tracing

disable-all-logging

Enables max_level_off and release_max_level_off of tracing

enable-serde = typetag

Enables wasmer-wasix-types, enable-serde of virtual-fs

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-emscripten webc_runner_rt_emscripten?
rusty_pool sys-thread?
typetag enable-serde?

Enables typetag ^0.1

chrono js?
hyper webc_runner_rt_dproxy? webc_runner_rt_wcgi?

Enables hyper ^0.14

Used by the WCGI runner

wcgi webc_runner_rt_wcgi?
wcgi-host webc_runner_rt_wcgi?
tower-http webc_runner_rt_dproxy? webc_runner_rt_wcgi?

Enables tower-http ^0.4.0

tower webc_runner_rt_dproxy? webc_runner_rt_wcgi?
rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust

wasm-bindgen js?
js-sys js?
wasm-bindgen-futures js?
web-sys js?
reqwest not riscv64 riscv64 host-reqwest?

Enables reqwest ^0.11