Cargo Features
[dependencies]
wasmer-wasix = { version = "0.702.0-alpha.1", default-features = false, features = ["time", "ctrlc", "webc_runner_rt_wcgi", "webc_runner_rt_dcgi", "webc_runner_rt_dproxy", "sys-minimal", "sys", "sys-default", "sys-poll", "extra-logging", "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-defaultfeature is set by default wheneverwasmer-wasixis added withoutsomewhere in the dependency tree.default-features = false - time sys?
-
Enables tokio
- ctrlc sys?
- webc_runner_rt_wcgi webc_runner_rt_dcgi? = http-body-util, hyper, hyper-util, 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 = http-body-util, hyper, hyper-util, journal, tower, tower-http
-
Affects
runners::dproxy… - sys-minimal = sys-thread
-
the minimal sys implementation
- sys sys-default = ctrlc, host-fs, host-reqwest, host-threads, host-vnet, journal, logging, sys-poll, sys-thread, time
-
Enables sys of virtual-mio, js-serializable-module and wat of wasmer and mmap of webc
webc:
No longer used
- sys-default default = sys
-
wasmer:
Features for
sys. - sys-poll sys?
- extra-logging
- sys-thread sys? sys-minimal? = rusty_pool
-
Enables rt-multi-thread of tokio
Affects
task_manager::tokio… - journal sys? 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.read_only_journals,runtime::Runtime.writable_journals,runtime::Runtime.active_journal,runtime::PluggableRuntime.read_only_journals,runtime::PluggableRuntime.writable_journals,runtime::OverriddenRuntime.read_only_journals,runtime::OverriddenRuntime.writable_journals,env::WasiEnvInit.snapshot_on,env::WasiEnvInit.stop_running_after_snapshot,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 js of virtual-fs, js-default, js-serializable-module, wasm-types-polyfill and wat of wasmer and wasm_js of getrandom
getrandom:
Optional backend: wasm_js
This flag enables the wasm_js backend and uses it by default on wasm32 where the target_os is unknown. The getrandom_backend cfg may override this.
WARNING: We strongly recommend against enabling this feature in libraries (except for tests) since it is known to break non-Web WASM builds and further since the usage of
wasm-bindgencauses significant bloat toCargo.lock(on all targets).The only exception to this rule: if your crate already unconditionally depends on
wasm-bindgenorjs-syson "unknown" WASM targets then it's acceptable to enable this feature unconditionally. - js-default = js
- test-js = js
- host-vnet sys?
-
Enables host-net of virtual-net
- host-threads sys?
- host-reqwest sys? = reqwest
-
Affects
http::reqwest… - host-fs sys?
-
Enables host-fs of virtual-fs
- remote-vnet
-
Enables remote of virtual-net
- logging sys?
- disable-all-logging
-
Enables max_level_off and release_max_level_off of tracing
- enable-serde = typetag
-
Enables wasmer-wasix-types and enable-serde of virtual-fs and wasmer
wasmer:
Optional
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.
- hyper webc_runner_rt_dproxy? webc_runner_rt_wcgi?
- rusty_pool sys-thread?
- typetag enable-serde?
- chrono js?
- wcgi webc_runner_rt_wcgi?
-
Enables wcgi
Used by the WCGI runner
- wcgi-host webc_runner_rt_wcgi?
- tower-http webc_runner_rt_dproxy? webc_runner_rt_wcgi?
- 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?
- hyper-util webc_runner_rt_dproxy? webc_runner_rt_wcgi?
- http-body-util webc_runner_rt_dproxy? webc_runner_rt_wcgi?
- reqwest riscv64 loongarch64 not riscv64 loongarch64 host-reqwest?