logo
pub struct Compiler { /* private fields */ }
Expand description

Defines WasmEdge ahead-of-time(AOT) compiler and the relevant APIs.

Implementations

Creates a new AOT compiler.

Error

If fail to create a AOT compiler, then an error is returned.

Compiles the input WASM from the given file path for the AOT mode and stores the result to the output file path.

Arguments
  • in_path specifies the input WASM file path.

  • out_path specifies the output WASM file path.

Error

If fail to compile, then an error is returned.

Compiles the input WASM from the given bytes for the AOT mode and stores the result to the output file path.

Argument
  • bytes - A in-memory WASM bytes.

  • out_path - The output WASM file path.

Error

If fail to compile, then an error is returned.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.