Crate wasm_bridge

source ·

Modules

  • Unix-specific extension for the wasmtime crate.

Structs

Enums

  • Passed to the argument of Store::call_hook to indicate a state transition in the WebAssembly VM.
  • An external item to a WebAssembly module, or a list of what can possibly be exported from a wasm module.
  • A list of all possible types which can be externally referenced from a WebAssembly module.
  • Represents the module instance allocation strategy to use.
  • Configure the strategy used for versioning in serializing and deserializing crate::Module.
  • Indicator of whether a global is mutable or not
  • Possible optimization levels for the Cranelift codegen backend.
  • Select which profiling technique to support.
  • Possible Compilation strategies for a wasm module.
  • What to do after returning from a callback when the engine epoch reaches the deadline for a Store during execution of a function using that store.
  • Possible runtime values that a WebAssembly module can either consume or produce.
  • A list of all possible value types in WebAssembly.
  • Result of [Memory::atomic_wait32] and [Memory::atomic_wait64]
  • Select how wasm backtrace detailed information is handled.

Constants

Traits

  • A trait used to get shared access to a Store in Wasmtime.
  • A trait used to get exclusive mutable access to a Store in Wasmtime.
  • Implementation of an incremental compilation’s key/value cache store.
  • An object that can take callbacks when the runtime enters or exits hostcalls.
  • Internal trait implemented for all arguments that can be passed to Func::wrap and Linker::func_wrap.
  • A linear memory. This trait provides an interface for raw memory buffers which are used by wasmtime, e.g. inside [‘Memory’]. Such buffers are in principle not thread safe. By implementing this trait together with MemoryCreator, one can supply wasmtime with custom allocated host managed memory.
  • A memory creator. Can be used to provide a memory creator to wasmtime which supplies host managed memory.
  • Used by hosts to limit resource consumption of instances.
  • Used by hosts to limit resource consumption of instances, blocking asynchronously if necessary.
  • A trait used for Func::typed and with TypedFunc to represent the set of parameters for wasm functions.
  • A trait used for Func::typed and with TypedFunc to represent the set of results for wasm functions.
  • A trait implemented for types which can be returned from closures passed to Func::wrap and friends.
  • A trait implemented for types which can be arguments and results for closures passed to Func::wrap as well as parameters to Func::typed.

Type Definitions

Unions

  • A “raw” and unsafe representation of a WebAssembly value.