Cargo Features

[dependencies]
linera-wasmer = { version = "4.3.1-linera.2", default-features = false, features = ["std", "core", "sys", "sys-default", "compiler", "singlepass", "cranelift", "engine", "jit", "js", "js-default", "wasm-types-polyfill", "jsc", "js-serializable-module", "enable-serde", "wasmer-artifact-load", "wasmer-artifact-create", "static-artifact-load", "static-artifact-create"] }
default = sys-default

The sys-default feature is set by default whenever linera-wasmer is added without default-features = false somewhere in the dependency tree.

std js-default? sys?
core = hashbrown
sys compiler? engine? sys-default = std

Features for sys.

Enables compiler and translator of linera-wasmer-compiler

Affects linera-wasmer::sys, linera-wasmer::Artifact, linera-wasmer::EngineBuilder, linera-wasmer::Features, linera-wasmer::BaseTunables, linera-wasmer::VMConfig

sys-default default = cranelift, sys, wat
compiler cranelift? singlepass? = sys

- Compilers.

Affects engine::NativeEngineExt.new

singlepass = compiler, wasmer-compiler-singlepass
cranelift sys-default = compiler, wasmer-compiler-cranelift
engine jit? = sys

- Engines.

jit = engine

- Deprecated features.

js js-default? = js-sys, wasm-bindgen

Features for js.

js-default = js, std, wasm-types-polyfill
wasm-types-polyfill js-default? jsc? = wasmparser
jsc = rusty_jsc, wasm-types-polyfill, wasmparser
js-serializable-module
enable-serde

Optional

Enables enable-serde of linera-wasmer-compiler, wasmer-types =4.3.1, and linera-wasmer-vm

wasmer-artifact-load

Enables wasmer-artifact-load of linera-wasmer-compiler

wasmer-artifact-create

Enables wasmer-artifact-create of linera-wasmer-compiler

static-artifact-load

Enables static-artifact-load of linera-wasmer-compiler

static-artifact-create

Enables static-artifact-create of linera-wasmer-compiler

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.

This crate comes in 2 major flavors:

  • sys, where wasmer will be compiled to a native executable which provides compilers, engines, a full VM etc.
  • js, where wasmer will be compiled to WebAssembly to run in a JavaScript host.

Shared dependencies.

wat sys-default

Enables wat =1.0.71

- Optional shared dependencies.

hashbrown wasm32 core?

Enables hashbrown ^0.11

js-sys wasm32 not wasm32 js?
rusty_jsc not wasm32 jsc?
wasm-bindgen wasm32 not wasm32 js?
wasmer-compiler-cranelift not wasm32 cranelift?

Enables linera-wasmer-compiler-cranelift

wasmer-compiler-singlepass not wasm32 singlepass?

Enables linera-wasmer-compiler-singlepass

wasmparser not wasm32 wasm32 jsc? wasm-types-polyfill?

Enables wasmparser ^0.121.0