Cargo Features

[dependencies]
wasmer-c-api = { version = "6.0.0", default-features = false, features = ["wat", "wasi", "middlewares", "sys", "singlepass", "cranelift", "llvm", "compiler", "compiler-headless", "jsc", "v8", "wasmi", "wamr", "sys-default", "jsc-default", "v8-default", "wamr-default", "wasmi-default", "wasmer-artifact-load", "wasmer-artifact-create", "static-artifact-load", "static-artifact-create", "webc_runner", "jit", "typetag"] }
default = compiler, cranelift, middlewares, sys-default, wasi, wat

These default features are set whenever wasmer-c-api is added without default-features = false somewhere in the dependency tree.

wat default

Enables wat of wasmer

We rename wasmer to wasmer-api to avoid the conflict with this library name (see [lib]).

Affects wasm_c_api::wat, wat::wat2wasm

wasi default = wasmer-wasix

Affects wasm_c_api::wasi, unstable::wasi

middlewares default = compiler, wasmer-middlewares

Affects config::wasm_config_push_middleware, unstable::middlewares

sys compiler compiler-headless? sys-default = wasmer-compiler

Enable the sys backend.

Enables sys of wasmer

singlepass = compiler

Enable the singlepass compiler.

Enables wasmer-compiler-singlepass, singlepass of wasmer

cranelift default = compiler

Enable the cranelift compiler.

Enables wasmer-compiler-cranelift, cranelift of wasmer

llvm = compiler

Enable the llvm compiler.

Enables wasmer-compiler-llvm, llvm of wasmer

compiler default cranelift jit? llvm? middlewares singlepass? = sys, wasmer-compiler

Enable the use of compiler. Implies enabling the sys feature.

Enables compiler of wasmer, compiler and translator of wasmer-compiler

Affects unstable::parser

compiler-headless = static-artifact-load, sys, wasmer-artifact-load

Enable the use of the headless compiler. Implies enabling the sys feature.

Enables compiler of wasmer, compiler and translator of wasmer-compiler

jsc jsc-default?

Enable the jsc backend.

Enables jsc and std of wasmer

v8 v8-default?

Enable the v8 backend.

Enables v8 of wasmer

wasmi wasmi-default?

Enable the wasmi backend.

Enables wasmi of wasmer

wamr wamr-default?

Enable the wamr backend.

Enables wamr of wasmer

sys-default default = sys

Enable the sys backend and use it as default. Notice that this does not enable a default compiler, and users should therefore add one (or more) of the singlepass, cranelift and llvm features.

Enables sys-default of wasmer

jsc-default = jsc

Enable the jsc backend and use it as default.

Enables jsc-default of wasmer

v8-default = v8

Enable the v8 backend and use it as default.

Enables v8-default of wasmer

wamr-default = wamr

Enable the wamr backend and use it as default.

Enables wamr-default of wasmer

wasmi-default = wasmi

Enable the wasmi backend and use it as default.

Enables wasmi-default of wasmer

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? sys? wasmer-artifact-create? wasmer-artifact-load?
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