Module sys

Source
Expand description

Data types, functions and traits for the sys runtime.

Re-exports§

pub use wasmer_compiler::wasmparser;

Modules§

engine
Data types, functions and traits for sys runtime’s Engine implementation.
exception
Data types, functions and traits for sys runtime’s Tag implementation.
external
Data types, functions and traits for sys runtime’s ExternRef implementation.
function
Data types, functions and traits for sys runtime’s Function implementation.
global
Data types, functions and traits for sys runtime’s Global implementation.
instance
Data types, functions and traits for sys runtime’s Instance implementation.
memory
Data types, functions and traits for sys runtime’s Memory implementation.
module
Data types, functions and traits for sys runtime’s Module implementation.
store
Data types, functions and traits for sys runtime’s Store implementation.
table
Data types, functions and traits for sys runtime’s Table implementation.
tag
Data types, functions and traits for sys runtime’s Tag implementation.
vm
The vm module re-exports wasmer-vm types.

Structs§

Artifact
A compiled wasm module, ready to be instantiated.
BaseTunables
Tunable parameters for WebAssembly compilation. This is the reference implementation of the Tunables trait, used by default.
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.
NativeEngineExt
The custom trait to access to all the sys function in the common engine.
Tunables
An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait.