alternera_plugin_wasm_framework

What a pipeline step in a scripting language needs, apart from the language: a WebAssembly runtime, the interface to a language's module, the step's settings, host calls and results, the memory limit, and a test kit. It holds no plugin. A language plugin is a package of its own that ships its interpreter as one .wasm file and delegates its callbacks to Alternera.PluginWasmFramework.Language.

It builds on alternera_plugin_sdk and alternera_plugin_editor and calls nothing of the proxy.

test/ runs everything against a test guest written in C (test/guest/test_guest.c, built by test/guest/build.sh with wasi-sdk 34.0 into test/fixtures/test_guest.wasm), with no proxy around (mix test), on the port runtime when the host program is built and on wasmex when it is not; ALTERNERA_WASM_RUNTIME=port mix test or =wasmex names the runtime (CI runs both), and the port's own tests skip while the host program is not built. The internals chapter is docs/internals.adoc, included by the repository's docs/internals.adoc.

Licence

Licensed under the Apache License, Version 2.0 (LICENSE, NOTICE). Alternera itself, the proxy this package plugs into, is under the Elastic License 2.0.

The third-party software it bundles (the Rust crates compiled into alternera_wasm_host) is listed with its licences in priv/THIRD_PARTY_NOTICES.txt.