mirror of
https://github.com/extism/extism.git
synced 2026-01-08 05:23:55 -05:00
This PR adds the `kernel` directory which contains a port of the Extism memory allocator compiled to WebAssembly and removes `runtime/src/memory.rs` completely. Being able to re-use memory functions as a WASM module allows us to begin to experiment with porting Extism to new runtimes! This is in a draft state while I'm verifying some of these changes.
772 B
772 B
Extism kernel
The Extism kernel implements core parts of the Extism runtime in Rust compiled to WebAssembly. This code is a conceptual re-write of memory.rs with the goal of making core parts of the Extism implementation more portable across WebAssembly runtimes.
See lib.rs for more details about the implementation itself.
Building
Because this crate is built using the wasm32-unknown-unknown target, it is a separate build process from the extism-runtime crate.
To build extism-runtime.wasm, strip it and copy it to the proper location in the extism-runtime tree you can run:
$ sh build.sh