@bytecodealliance/jco-cm-runtime
v0.0.1
Published
Default Component Model runtime for Jco-generated JavaScript
Readme
@bytecodealliance/jco-cm-runtime
An optional Component Model runtime for JavaScript generated by Jco. Its operations implement the Canonical ABI. The experimental JavaScript runtime API is versioned independently of the npm package. It may change without an API version bump while it stabilizes.
npm install @bytecodealliance/jco-cm-runtime
jco transpile component.wasm --cm-runtime-es-module @bytecodealliance/jco-cm-runtimeWithout the option, the transpiler bundles the parts of this runtime that the
bindings use into them, and they import no runtime. Neither jco nor jco-transpile
needs a concrete runtime installed to transpile. Resolution happens when the
bindings are loaded or bundled.
Documentation
- Runtime API and provider contracts: module resolution, API versioning and implementing an alternative runtime.
- Intrinsic contracts: operations, contexts and state ownership for each public module.
