Cargo Features
[dependencies]
linera-wasmer = { version = "4.4.0-linera.6", default-features = false, features = ["std", "core", "artifact-size", "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 wheneverlinera-wasmer
is added without
somewhere in the dependency tree.default-features = false - std js-default? sys?
- core = hashbrown
- artifact-size
-
Enables loupe, artifact-size of linera-wasmer-compiler and linera-wasmer-vm
- 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.4.0, 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
, wherewasmer
will be compiled to a native executable which provides compilers, engines, a full VM etc.js
, wherewasmer
will be compiled to WebAssembly to run in a JavaScript host.Shared dependencies.
- wat sys-default
-
Enables wat =1.217.0
- Optional shared dependencies.
- hashbrown wasm32 core?
-
Enables hashbrown ^0.11
- js-sys not wasm32 wasm32 js?
- rusty_jsc not wasm32 jsc?
- wasm-bindgen not wasm32 wasm32 js?
- wasmer-compiler-cranelift not wasm32 cranelift?
-
Enables linera-wasmer-compiler-cranelift
- wasmer-compiler-singlepass not wasm32 singlepass?
- wasmparser not wasm32 wasm32 jsc? wasm-types-polyfill?
-
Enables wasmparser ^0.121.0