* Add trampoline compilation support for lowered imports This commit adds support to the component model implementation for compiling trampolines suitable for calling host imports. Currently this is purely just the compilation side of things, modifying the wasmtime-cranelift crate and additionally filling out a new `VMComponentOffsets` type (similar to `VMOffsets`). The actual creation of a `VMComponentContext` is still not performed and will be a subsequent PR. Internally though some tests are actually possible with this where we at least assert that compilation of a component and creation of everything in-memory doesn't panic or trip any assertions, so some tests are added here for that as well. * Fix some test errors
32 lines
1.2 KiB
TOML
32 lines
1.2 KiB
TOML
[package]
|
|
name = "wasmtime-cranelift"
|
|
version = "0.38.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "Integration between Cranelift and Wasmtime"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
documentation = "https://docs.rs/wasmtime-cranelift/"
|
|
categories = ["wasm"]
|
|
keywords = ["webassembly", "wasm"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
log = "0.4"
|
|
wasmtime-environ = { path = "../environ", version = "=0.38.0" }
|
|
cranelift-wasm = { path = "../../cranelift/wasm", version = "0.85.0" }
|
|
cranelift-codegen = { path = "../../cranelift/codegen", version = "0.85.0" }
|
|
cranelift-frontend = { path = "../../cranelift/frontend", version = "0.85.0" }
|
|
cranelift-entity = { path = "../../cranelift/entity", version = "0.85.0" }
|
|
cranelift-native = { path = "../../cranelift/native", version = "0.85.0" }
|
|
wasmparser = "0.85.0"
|
|
target-lexicon = "0.12"
|
|
gimli = { version = "0.26.0", default-features = false, features = ['read', 'std'] }
|
|
object = { version = "0.28.0", default-features = false, features = ['write'] }
|
|
more-asserts = "0.2.1"
|
|
thiserror = "1.0.4"
|
|
|
|
[features]
|
|
all-arch = ["cranelift-codegen/all-arch"]
|
|
component-model = ["wasmtime-environ/component-model"]
|