* Replace the global-exports mechanism with a caller-vmctx mechanism. This eliminates the global exports mechanism, and instead adds a caller-vmctx argument to wasm functions so that WASI can obtain the memory and other things from the caller rather than looking them up in a global registry. This replaces #390. * Fixup some merge conflicts * Rustfmt * Ensure VMContext is aligned to 16 bytes With the removal of `global_exports` it "just so happens" that this isn't happening naturally any more. * Fixup some bugs with double vmctx in wasmtime crate * Trampoline stub needed adjusting * Use pointer type instead of always using I64 for caller vmctx * Don't store `ir::Signature` in `Func` since we don't know the pointer size at creation time. * Skip the first 2 arguments in IR signatures since that's the two vmctx parameters. * Update cranelift to 0.56.0 * Handle more merge conflicts * Rustfmt Co-authored-by: Alex Crichton <alex@alexcrichton.com>
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[package]
|
|
name = "wasmtime-jit"
|
|
version = "0.9.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "JIT-style execution for WebAsssembly code in Cranelift"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
categories = ["wasm"]
|
|
keywords = ["webassembly", "wasm"]
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
cranelift-codegen = { version = "0.56", features = ["enable-serde"] }
|
|
cranelift-entity = { version = "0.56", features = ["enable-serde"] }
|
|
cranelift-wasm = { version = "0.56", features = ["enable-serde"] }
|
|
cranelift-native = "0.56"
|
|
cranelift-frontend = "0.56"
|
|
wasmtime-environ = { path = "../environ", version = "0.9.0" }
|
|
wasmtime-runtime = { path = "../runtime", version = "0.9.0" }
|
|
wasmtime-debug = { path = "../debug", version = "0.9.0" }
|
|
region = "2.0.0"
|
|
thiserror = "1.0.4"
|
|
target-lexicon = { version = "0.10.0", default-features = false }
|
|
wasmparser = { version = "0.47.0", default-features = false }
|
|
more-asserts = "0.2.1"
|
|
anyhow = "1.0"
|
|
cfg-if = "0.1.9"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3.7", features = ["winnt", "impl-default"] }
|
|
|
|
[features]
|
|
lightbeam = ["wasmtime-environ/lightbeam"]
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|