BinaryLibs.Wasm 0.163.0

dotnet add package BinaryLibs.Wasm --version 0.163.0
                    
NuGet\Install-Package BinaryLibs.Wasm -Version 0.163.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BinaryLibs.Wasm" Version="0.163.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BinaryLibs.Wasm" Version="0.163.0" />
                    
Directory.Packages.props
<PackageReference Include="BinaryLibs.Wasm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BinaryLibs.Wasm --version 0.163.0
                    
#r "nuget: BinaryLibs.Wasm, 0.163.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BinaryLibs.Wasm@0.163.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BinaryLibs.Wasm&version=0.163.0
                    
Install as a Cake Addin
#tool nuget:?package=BinaryLibs.Wasm&version=0.163.0
                    
Install as a Cake Tool

Wasm worker hosting

WasmSupervisor manages one or more WasmWorker instances. A worker can load the existing in-process WasmRuntime, or it can own an injected IWasmWorkerProcess/ProcessStartInfo for a separate worker executable. IWasmProtocolTransport is used for the phase-4 control handshake and clean shutdown. WasmWorker reports lifecycle state, failures, heartbeat timeouts, unexpected process exits, deadline-based shutdown, and explicit restart or termination.

The library remains netstandard2.0, so it does not provide a universal OS-specific worker executable or a platform-neutral process IPC implementation. Applications supply the companion worker entry point and transport; the provided WasmProcessWorkerProcess is the concrete BCL process launcher where the host platform supports System.Diagnostics.Process. Invocation of a separate process must be implemented by that companion using the existing generic protocol. This package deliberately does not define domain-specific commands or payloads.

Phase 6 and 7: local callback queue and hardening model

The runtime and worker model now separates fast local callback traffic from the out-of-process supervisor transport. A worker may raise callback events that are not immediately forwarded over IPC; instead they are stored in an in-memory WasmLocalCallbackQueue as opaque WasmLocalOperationRecord entries. Each record carries a correlation identifier and raw payload bytes, so callback records can be exchanged later in a single flush without one IPC round trip per invocation.

The queue is intentionally bounded. WasmLocalCallbackOptions exposes a MaxQueueDepth and a WasmQueueOverflowPolicy so applications can choose the behavior that best fits the worker's latency and safety profile. The default policy is Throw, but callers may select DropOldest, DropNewest, or Terminate to fail closed under pressure. The queue does not implement a blocking producer/consumer model; its explicit contract is that a callback can be queued, inspected, and flushed as an exchange batch to the supervisor or another coordinator. Peek() and Flush() provide the boundary between worker-local activity and transport-level exchange; Flush() drains and returns the queued records as a list for later dispatch or persistence.

The hardening layer follows the same fail-closed philosophy. WasmHardeningLimits controls the maximum payload size, maximum callback nesting depth, and maximum callback duration. WasmHardeningPolicy validates each queued record and raises a WasmHardeningException when those limits are exceeded. The failure taxonomy is captured in WasmHardeningFailure (PayloadLimitExceeded, CallbackDepthExceeded, QueueDepthExceeded, and TimeoutExceeded), and the termination behavior is selected by WasmProcessTerminationPolicy.

This model is meant to keep the library deterministic under resource pressure. A worker cannot silently accept unbounded callback payloads or continue forever when resource ceilings are exceeded. Instead, the runtime treats those conditions as explicit faults that are surfaced to the caller and can trigger process termination according to policy. This is the documented Phase 6/7 behavior that forms part of the Phase 8 documentation update for the package.

Product 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 was computed.  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 was computed.  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 was computed. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BinaryLibs.Wasm:

Package Downloads
BinaryLibs.Wasm.Worker

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.163.0 99 9/6/2026
0.162.0 91 9/4/2026
0.161.0 85 8/31/2026
0.160.0 93 8/30/2026
0.159.0 86 8/26/2026
0.158.0 88 8/26/2026