Cargo Features

[dependencies]
wasmer-c-api = { version = "6.0.0-beta.1", default-features = false, features = ["sys", "jsc", "wat", "wasi", "middlewares", "compiler", "compiler-headless", "singlepass", "cranelift", "llvm", "v8", "wamr", "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 default-features = false somewhere in the dependency tree.

sys
jsc

Enables jsc and std of wasmer

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

wat default

Enables wat of wasmer

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::wasm_config_set_target, engine::wasmer_is_compiler_available, unstable::parser, unstable::target_lexicon

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

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

Affects unstable::target_lexicon

singlepass = compiler, wasmer-compiler-singlepass
cranelift default = compiler, wasmer-compiler-cranelift
llvm = compiler, wasmer-compiler-llvm
v8

WARNING!

These features are here but, for now (wasmer 6.0.0-alpha1) they do nothing.
In the next alpha release they will be wired up to use the matching backend.
These features are being added now to make CI easier, since we will nonetheless have to add them later.

wasmi wamr
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