Docs.rs
  • wasmer-compiler-4.2.6
    • wasmer-compiler 4.2.6
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • MarkMcCaskey
    • github:wasmerio:wasmer-core
    • Dependencies
      • backtrace ^0.3 normal
      • bytes ^1.0 normal
      • cfg-if ^1.0 normal
      • enum-iterator ^0.7.0 normal
      • enumset ^1.1.0 normal
      • hashbrown ^0.11 normal optional
      • lazy_static ^1.4 normal
      • leb128 ^0.2 normal
      • memmap2 ^0.5 normal
      • more-asserts ^0.2 normal
      • rkyv ^0.7.40 normal
      • self_cell ^1.0 normal
      • serde ^1.0 normal optional
      • serde_bytes ^0.11 normal optional
      • shared-buffer ^0.1.4 normal
      • smallvec ^1.6 normal
      • thiserror ^1.0 normal
      • wasmer-object =4.2.6 normal optional
      • wasmer-types =4.2.6 normal
      • wasmparser ^0.121.0 normal optional
      • region ^3.0 normal
      • wasmer-vm =4.2.6 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
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate wasmer_compiler

wasmer_compiler4.2.6

  • All Items
  • Re-exports
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions
  • Type Aliases

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.

Re-exports§

  • pub use frame_info::FRAME_INFO;
  • pub use frame_info::FRAME_INFO;

Structs§

  • BaseTunablesNon-WebAssembly
    Tunable parameters for WebAssembly compilation. This is the reference implementation of the Tunables trait, used by default.
  • FRAME_INFONon-WebAssembly
    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.
  • FunctionExtentNon-WebAssembly
    Represents a continuous region of executable memory starting with a function entry point.
  • GlobalFrameInfoRegistrationNon-WebAssembly
    An RAII structure used to unregister a module’s frame information when the module is destroyed.

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.
  • TunablesNon-WebAssembly
    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§

  • get_trace_and_trapcodeNon-WebAssembly
    Given a Trap, this function returns the Wasm trace and the trap code.
  • register_frame_infoNon-WebAssembly
    Registers a new compiled module’s frame information.
  • resolve_importsNon-WebAssembly
    This function allows to match all imports of a ModuleInfo with concrete definitions provided by a Resolver.

Type Aliases§

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

Results

trait
wasmer_compiler::ArtifactCreate
An Artifact is the product that the Engine implementation …
method
wasmer_compiler::ArtifactCreate::downcast_mut
Try to downcast the artifact into a given type mutably.
method
wasmer_compiler::ArtifactCreate::downcast_ref
Try to downcast the artifact into a given type.
trait method
wasmer_compiler::ArtifactCreate::data_initializers
Returns data initializers to pass to VMInstance::initialize
trait method
wasmer_compiler::ArtifactCreate::features
Returns the features for this Artifact
trait method
wasmer_compiler::ArtifactCreate::module_info
Returns the ModuleInfo for instantiation
trait method
wasmer_compiler::ArtifactCreate::cpu_features
Returns the CPU features for this Artifact
trait method
wasmer_compiler::ArtifactCreate::create_module_info
Create a ModuleInfo for instantiation
trait method
wasmer_compiler::ArtifactCreate::set_module_info_name
Sets the ModuleInfo name
trait method
wasmer_compiler::ArtifactCreate::table_styles
Returns the table plans associated with this Artifact.
trait method
wasmer_compiler::ArtifactCreate::memory_styles
Returns the memory styles associated with this Artifact.
trait method
wasmer_compiler::ArtifactCreate::serialize
Serializes an artifact into bytes
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.