mirror of
https://github.com/extism/extism.git
synced 2026-01-08 21:38:13 -05:00
This cosmetic change to the kernel adds two `u64` types for usage where `Pointer` was used and it is actually something else or is more restrictive (a pointer to the start of a data block (handle) or a relative offset). Instead of adding `Offset` to match `Length` I'd prefer to use `u64` directly when referring to those scalars, but not sure if the those types are preferred?
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