mirror of
https://github.com/extism/extism.git
synced 2026-01-08 21:38:13 -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.
8 lines
286 B
Bash
Executable File
8 lines
286 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cargo build --release --target wasm32-unknown-unknown --package extism-runtime-kernel --bin extism-runtime
|
|
cp target/wasm32-unknown-unknown/release/extism-runtime.wasm .
|
|
wasm-strip extism-runtime.wasm || :
|
|
mv extism-runtime.wasm ../runtime/src/extism-runtime.wasm
|
|
|