Skip to content

Latest commit

 

History

History

README.md

Hako.Backend.Wasmtime

Wasmtime-based backend for Hako using the Cranelift JIT compiler for high performance.

Installation

dotnet add package Hako.Backend.Wasmtime

Usage

using HakoJS;
using HakoJS.Backend.Wasmtime;

using var runtime = Hako.Initialize<WasmtimeEngine>();

// Use runtime...

AOT Static Linking

When publishing with native AOT compilation, you can statically link Wasmtime libraries into your executable to produce a single file:

<PropertyGroup>
  <WasmtimeStaticLink>true</WasmtimeStaticLink>
</PropertyGroup>

Note: Static linking requires the Wasmtime.6over3 fork:

<PackageReference Include="Wasmtime.6over3" Version="38.0.3-dev" />

Documentation

See the main Hako documentation for complete usage and API reference.