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.
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
[package]
|
|
name = "extism-runtime"
|
|
version = "0.4.0"
|
|
edition = "2021"
|
|
authors = ["The Extism Authors", "oss@extism.org"]
|
|
license = "BSD-3-Clause"
|
|
homepage = "https://extism.org"
|
|
repository = "https://github.com/extism/extism"
|
|
description = "Extism runtime component"
|
|
|
|
[dependencies]
|
|
wasmtime = ">= 8.0.0, < 11.0.0"
|
|
wasmtime-wasi = ">= 8.0.0, < 11.0.0"
|
|
wasmtime-wasi-nn = {version = ">= 8.0.0, < 11.0.0", optional=true}
|
|
anyhow = "1"
|
|
serde = {version = "1", features = ["derive"]}
|
|
serde_json = "1"
|
|
toml = "0.7"
|
|
sha2 = "0.10"
|
|
log = "0.4"
|
|
log4rs = "1.1"
|
|
url = "2"
|
|
glob = "0.3"
|
|
ureq = {version = "2.5", optional=true}
|
|
extism-manifest = { version = "0.4.0", path = "../manifest" }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
libc = "0.2"
|
|
|
|
[features]
|
|
default = ["http", "register-http", "register-filesystem"]
|
|
nn = ["wasmtime-wasi-nn"]
|
|
register-http = ["ureq"] # enables wasm to be downloaded using http
|
|
register-filesystem = [] # enables wasm to be loaded from disk
|
|
http = ["ureq"] # enables extism_http_request
|
|
|
|
[build-dependencies]
|
|
cbindgen = "0.24"
|