Module sys

Source
Expand description

Data types, functions and traits for the sys runtime.

Re-exports§

pub use engine::NativeEngineExt;
pub use wasmer_compiler::wasmparser;
pub use entities::*;
pub use tunables::*;

Modules§

async_runtime 🔒
entities 🔒
error 🔒
tunables 🔒
vm
The vm module re-exports wasmer-vm types.

Structs§

Artifact
A compiled wasm module, ready to be instantiated.
Cranelift
Global configuration options used to create an wasmer_engine::Engine and customize its behavior.
EngineBuilder
The Builder contents of Engine
Features
Controls which experimental features will be enabled. Features usually have a corresponding WebAssembly proposal.
LLVM
MiddlewareError
A error in the middleware.
MiddlewareReaderState
The state of the binary reader. Exposed to middlewares to push their outputs.
Singlepass
Target
This is the target that we will use for compiling the WebAssembly ModuleInfo, and then run it.
Triple
An LLVM target “triple”. Historically such things had three fields, though they’ve added additional fields over time.

Enums§

Architecture
The “architecture” field, which in some cases also specifies a specific subarchitecture.
CpuFeature
The nomenclature is inspired by the cpuid crate. The list of supported features was initially retrieved from cranelift-native.
CraneliftOptLevel
Possible optimization levels for the Cranelift codegen backend.
LLVMOptLevel
Defines the optimization level used to compile a Module.
OperatingSystem
The “operating system” field, which sometimes implies an environment, and sometimes isn’t an actual operating system.

Traits§

CompilerConfig
The compiler configuration options.
FunctionMiddleware
A function middleware specialized for a single function.
ModuleMiddleware
A shared builder for function middlewares.
Tunables
An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait.