Cargo Features

[dependencies]
wasmer-c-api-near = { version = "1.0.1", default-features = false, features = ["wat", "wasi", "engine", "jit", "native", "object-file", "compiler", "singlepass", "cranelift", "llvm", "system-libffi", "deprecated", "singlepass-backend", "cranelift-backend", "llvm-backend", "wasmer-emscripten"] }
default = cranelift, deprecated, jit, wasi, wat

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

wat default

Enables wat of wasmer-near ^1.0.1

Affects wasm_c_api::wat, wat::wat2wasm

wasi default = serde, typetag, wasmer-wasi

Affects wasm_c_api::wasi

engine jit native? object-file?
jit default = engine, wasmer-engine-jit
native = engine, wasmer-engine-native
object-file = engine, wasmer-engine-object-file
compiler cranelift llvm? singlepass?

Enables compiler of wasmer-engine-jit-near, wasmer-engine-native-near, and wasmer-engine-object-file-near

wasmer-engine-jit-near:

Enable the compiler feature if you want the engine to compile and not be only on headless mode.

Affects engine::wasmer_compiler_t, engine::wasm_config_set_compiler

singlepass singlepass-backend? = compiler, wasmer-compiler-singlepass
cranelift default cranelift-backend? = compiler, wasmer-compiler-cranelift
llvm llvm-backend? = compiler, wasmer-compiler-llvm
system-libffi

Enables system of libffi ^1.0

deprecated default = libffi

Affects wasmer-c-api-near::deprecated

singlepass-backend = singlepass

This is for compatibility for old usage

cranelift-backend = cranelift
llvm-backend = llvm

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-cranelift cranelift

Enables wasmer-compiler-cranelift-near

wasmer-compiler-singlepass singlepass?

Enables wasmer-compiler-singlepass-near ^1.0.1

wasmer-compiler-llvm llvm?

Enables wasmer-compiler-llvm-near

wasmer-emscripten implicit feature

Enables wasmer-emscripten-near

wasmer-emscripten-near:

Emscripten implementation library for Wasmer WebAssembly runtime

wasmer-engine-jit compiler? jit

Enables wasmer-engine-jit-near

wasmer-engine-native compiler? native?

Enables wasmer-engine-native-near

wasmer-engine-object-file compiler? object-file?

Enables wasmer-engine-object-file-near

wasmer-wasi wasi

Enables wasmer-wasi-near

libffi deprecated system-libffi?

Enables libffi ^1.0

serde wasi
typetag wasi

Enables typetag ^0.1