Wasmtime-based backend for Hako using the Cranelift JIT compiler for high performance.
dotnet add package Hako.Backend.Wasmtimeusing HakoJS;
using HakoJS.Backend.Wasmtime;
using var runtime = Hako.Initialize<WasmtimeEngine>();
// Use runtime...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" />See the main Hako documentation for complete usage and API reference.