Docs.rs
  • wasmer-compiler-3.1.0
    • wasmer-compiler 3.1.0
    • Docs.rs crate page
    • MIT OR Apache-2.0 WITH LLVM-exception
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • MarkMcCaskey
    • github:wasmerio:wasmer-core
    • Dependencies
      • backtrace ^0.3 normal
      • cfg-if ^1.0 normal
      • enum-iterator ^0.7.0 normal
      • enumset ^1.0.2 normal
      • hashbrown ^0.11 normal
      • lazy_static ^1.4 normal
      • leb128 ^0.2 normal
      • memmap2 ^0.5 normal
      • more-asserts ^0.2 normal
      • rustc-demangle ^0.1 normal
      • serde ^1.0 normal
      • serde_bytes ^0.11 normal
      • smallvec ^1.6 normal
      • thiserror ^1.0 normal
      • wasmer-object =3.1.0 normal
      • wasmer-types =3.1.0 normal
      • wasmparser ^0.83 normal
      • region ^3.0 normal
      • wasmer-vm =3.1.0 normal
      • winapi ^0.3 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

Crate wasmer_compiler

logo

Crate wasmer_compiler

  • Version 3.1.0
  • All Items
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions
  • Type Definitions

Crates

  • wasmer_compiler
?
Change settings

Crate wasmer_compiler

source ·
Expand description

The wasmer-compiler crate provides the necessary abstractions to create a compiler.

It provides an universal way of parsing a module via wasmparser, while giving the responsibility of compiling specific function WebAssembly bodies to the Compiler implementation.

Structs

BaseTunables
Tunable parameters for WebAssembly compilation. This is the reference implementation of the Tunables trait, used by default.
FRAME_INFO
This is a global cache of backtrace frame information for all active
Features
Controls which experimental features will be enabled. Features usually have a corresponding WebAssembly proposal.
FrameInfo
Description of a frame in a backtrace for a RuntimeError::trace.
FunctionExtent
Represents a continuous region of executable memory starting with a function entry point.
GlobalFrameInfoRegistration
An RAII structure used to unregister a module’s frame information when the module is destroyed.
RuntimeError
A struct representing an aborted instruction execution, with a message indicating the cause.

Enums

InstantiationError
An error while instantiating a module.
LinkError
The WebAssembly.LinkError object indicates an error during module instantiation (besides traps from the start function).

Constants

VERSION
Version number of this crate.

Traits

ArtifactCreate
An Artifact is the product that the Engine implementation produce and use.
Tunables
An engine delegates the creation of memories, tables, and globals to a foreign implementor of this trait.
Upcastable
Trait needed to get downcasting of Engines to work.

Functions

register_frame_info
Registers a new compiled module’s frame information.
resolve_imports
This function allows to match all imports of a ModuleInfo with concrete definitions provided by a Resolver.

Type Definitions

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

Results

wasmer_compiler::ArtifactCreate
An Artifact is the product that the Engine implementation …
wasmer_compiler::ArtifactCreate::downcast_mut
Try to downcast the artifact into a given type mutably.
wasmer_compiler::ArtifactCreate::downcast_ref
Try to downcast the artifact into a given type.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.