@as-harness/wasmtime
v0.6.0
Published
Rust/Node-API host implementation built on `wasmtime`.
Downloads
297
Readme
harness/wasmtime
Rust/Node-API host implementation built on wasmtime.
What lives here
src/lib.rs— native addon entry and wrapper around Wasm executionindex.cjs— JSHarnessAPI and sharedstart.cjsorchestrationscripts/build.mjs— local build helper with platform-specific linker setuptest/smoke.host.cjs— shared smoke + CLI smoke fixture
Scope
- published as
@as-harness/wasmtimeplus per-platform binary packages - same shared contract and callback suite as
jsandwazero - supports coverage declaration/imports, merged coverage snapshots, and
host-owned
uvu/assertfixture / snapshot artifacts - decodes and surfaces structured
debugpayload events for rewrittenabort(...)/trace(...)output through the shared host callback contract
Build and Test
Build requirement: Rust 1.94.0 stable or newer.
cd harness/wasmtime
node ./scripts/build.mjs
npm testNotes
- native package source verification remains in CI source-host matrix.
- source-host CLI smoke proof builds a Node-targeted CLI bundle and runs that
bundle under Node
25.8.1instead of invokingbun run ./cli/index.tsdirectly. - the bundled source CLI uses
AS_HARNESS_SOURCE_CLI_REPO_DIRduring CI smoke so the Node-targeted bundle can still resolve the repo-local host package. - public npm publication ships the per-platform binary packages that the
@as-harness/wasmtimemeta package resolves throughoptionalDependencies. - the tracked source-build dependency inventory lives in
licenses/wasmtime/THIRD_PARTY_INVENTORY.md
and is generated from
cargo metadata --format-version 1 --locked.
