Cargo Features
[dependencies]
wasmer-c-api = { version = "5.0.5-rc1", default-features = false, features = ["sys", "jsc", "wat", "wasi", "middlewares", "compiler", "compiler-headless", "singlepass", "cranelift", "llvm", "wasmer-artifact-load", "wasmer-artifact-create", "static-artifact-load", "static-artifact-create", "webc_runner", "jit", "typetag"] }
- default = compiler, cranelift, middlewares, wasi, wat
-
These default features are set whenever
wasmer-c-api
is added without
somewhere in the dependency tree.default-features = false - sys
- jsc
-
We rename
wasmer
towasmer-api
to avoid the conflict with this library name (see[lib]
). - wat default
-
Affects
wasm_c_api::wat
,wat::wat2wasm
… - wasi default = wasmer-wasix
-
Affects
wasm_c_api::wasi
,unstable::wasi
… - middlewares default = compiler, wasmer-middlewares
-
Affects
unstable::middlewares
… - compiler default cranelift jit? llvm? middlewares singlepass? = wasmer-compiler
-
Enables compiler of wasmer, compiler and translator of wasmer-compiler
Affects
engine::wasmer_compiler_t
,engine::wasm_config_set_compiler
,engine::wasmer_is_compiler_available
,unstable::parser
… - compiler-headless = static-artifact-load, wasmer-artifact-load
-
Enables compiler of wasmer, compiler and translator of wasmer-compiler
- singlepass = compiler, wasmer-compiler-singlepass
- cranelift default = compiler, wasmer-compiler-cranelift
- llvm = compiler, wasmer-compiler-llvm
- wasmer-artifact-load compiler-headless?
-
Enables wasmer-artifact-load of wasmer-compiler
- wasmer-artifact-create
-
Enables wasmer-artifact-create of wasmer-compiler
- static-artifact-load compiler-headless?
-
Enables static-artifact-load of wasmer-compiler
- static-artifact-create
-
Enables static-artifact-create of wasmer-compiler
- webc_runner = virtual-fs, webc
-
Affects
wasi::wasi_env_with_filesystem
… - jit = compiler
-
Deprecated features.
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-compiler compiler compiler-headless? static-artifact-create? static-artifact-load? wasmer-artifact-create? wasmer-artifact-load?
- wasmer-compiler-cranelift cranelift
- wasmer-compiler-llvm llvm?
- wasmer-compiler-singlepass singlepass?
- wasmer-middlewares middlewares
- wasmer-wasix wasi
- webc webc_runner?
- virtual-fs webc_runner?
- typetag implicit feature
-
Enables typetag ^0.1
typetag:
Serde serializable and deserializable trait objects