Wasmtime.6over3
38.0.3-dev
dotnet add package Wasmtime.6over3 --version 38.0.3-dev
NuGet\Install-Package Wasmtime.6over3 -Version 38.0.3-dev
<PackageReference Include="Wasmtime.6over3" Version="38.0.3-dev" />
<PackageVersion Include="Wasmtime.6over3" Version="38.0.3-dev" />
<PackageReference Include="Wasmtime.6over3" />
paket add Wasmtime.6over3 --version 38.0.3-dev
#r "nuget: Wasmtime.6over3, 38.0.3-dev"
#:package Wasmtime.6over3@38.0.3-dev
#addin nuget:?package=Wasmtime.6over3&version=38.0.3-dev&prerelease
#tool nuget:?package=Wasmtime.6over3&version=38.0.3-dev&prerelease
Installation
You can add a package reference with the .NET SDK:
$ dotnet add package wasmtime
Introduction
For this introduction, we'll be using a simple WebAssembly module that imports a hello function and exports a run function:
(module
(func $hello (import "" "hello"))
(func (export "run") (call $hello))
)
To use this module from .NET, create a new console project:
$ mkdir wasmintro
$ cd wasmintro
$ dotnet new console
Next, add a reference to the Wasmtime package:
$ dotnet add package wasmtime
Replace the contents of Program.cs with the following code:
using System;
using Wasmtime;
using var engine = new Engine();
using var module = Module.FromText(
engine,
"hello",
"(module (func $hello (import \"\" \"hello\")) (func (export \"run\") (call $hello)))"
);
using var linker = new Linker(engine);
using var store = new Store(engine);
linker.Define(
"",
"hello",
Function.FromCallback(store, () => Console.WriteLine("Hello from C#!"))
);
var instance = linker.Instantiate(store, module);
var run = instance.GetAction("run")!;
run();
An Engine is created and then a WebAssembly module is loaded from a string in WebAssembly text format.
A Linker defines a function called hello that simply prints a hello message.
The module is instantiated and the instance's run export is invoked.
To run the application, simply use dotnet:
$ dotnet run
This should print Hello from C#!.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- IndexRange (>= 1.0.2)
- System.Memory (>= 4.5.5)
-
.NETStandard 2.1
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Wasmtime.6over3:
| Package | Downloads |
|---|---|
|
Hako.Backend.Wasmtime
A Hako backend which uses https://github.com/bytecodealliance/wasmtime This backend leverages the Cranelift JIT compiler to maximize performance. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Wasmtime.6over3:
| Repository | Stars |
|---|---|
|
6over3/hako
An embeddable, lightweight, secure, high-performance JavaScript engine.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 38.0.3-dev | 456 | 11/4/2025 |
Update Wasmtime to 38.0.3.