Crate wasmer_types

Source
Expand description

This are the common types and utility tools for using WebAssembly in a Rust environment.

This crate provides common structures such as Type or Value, type indexes and native function wrappers with Func.

Re-exports§

Modules§

  • The entity module, with common helpers for Rust structures
  • The WebAssembly possible errors
  • The lib module defines a std module that is identical whether the core or the std feature is enabled.

Macros§

  • Macro which provides the common implementation of a 32-bit entity reference.

Structs§

Enums§

  • An entity to export.
  • A list of all possible types which can be externally referenced from a WebAssembly module.
  • Globals are initialized via the const operators or by referring to another import.
  • Hashing algorithm to be used for the module info
  • An entity to import.
  • The name of a runtime library routine.
  • Implementation styles for WebAssembly linear memory.
  • The hash of a WebAssembly module.
  • Indicator of whether a global is mutable or not
  • After the stack is unwound via asyncify what should the call loop do next
  • Implementation styles for WebAssembly tables.
  • A trap code describing the reason for a trap.
  • A list of all possible value types in WebAssembly.

Constants§

  • Version number of this crate.
  • The number of pages we can have before we run out of byte index space.
  • The minimum number of pages allowed.
  • WebAssembly page sizes are fixed to be 64KiB. Note: large page support may be added in an opt-in manner in the future.

Traits§

  • Any struct that acts like a DataInitializer.
  • Any struct that acts like a DataInitializerLocation.
  • Trait for the Memory32 and Memory64 marker types.
  • NativeWasmType represents a Wasm type that has a direct representation on the host (hence the “native” term).
  • Trait for a Value type. A Value type is a type that is always valid and may be safely copied.

Functions§

  • Check if the provided bytes are wasm-like

Type Aliases§

  • Addend to add to the symbol value.
  • Offset in bytes from the beginning of the function.

Unions§

  • Raw representation of a WebAssembly value.