Cargo Features
[dependencies]
wasmtime-provider = { version = "2.1.0", default-features = false, features = ["cache", "wasi", "async"] }
- default = async, wasi
-
These default features are set whenever
wasmtime-provider
is added without
somewhere in the dependency tree.default-features = false - cache
-
Enables wasmtime
wasmtime:
Enables support for automatic cache configuration to be enabled in
Config
. - wasi default = cap-std, wasi-common, wasmtime-wasi
- async default = async-trait, tokio
-
Enables async of wapc, tokio of wasi-common and async of wasmtime
wasmtime:
Enables support for "async stores" as well as defining host functions as
async fn
and calling functions asynchronously.
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.
- wasmtime-wasi wasi
-
Enables wasmtime-wasi
feature = wasi
- wasi-common async wasi
- cap-std wasi
- async-trait async
- tokio async