mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
49af986ad4
* Migrate wasmtime backend to wasmtime-api * Port to a newer version of wasmtime * Update to the latest changes. * Rejig the sandbox module a bit * Materialze * Fixes. * executor wasm_runtime fix * Refactor everything * More refactoring * Even more refactorings * More cleaning. * Update to the latest wasmtime * Reformat * Renames * Refactoring and comments. * Docs * Rename FunctionExecutor to host. * Imrpove docs. * fmt * Remove panic * Assert the number of arguments are equal between wasmtime and hostfunc. * Comment a possible panic if there is no corresponding value variant. * Check signature of the entrypoint. * Use git version of wasmtime * Refine and doc the sandbox code. * Comment RefCells. * Update wasmtime to the latest-ish master. This may solve a problem with segfaults. * Apply suggestions from code review Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Use full SHA1 hash of wasmtime commit. * Add a panic message. * Add some documentation * Update wasmtime version to include SIGSEGV fix * Update to crates.io version of wasmtime * Make it work. * Move the creation of memory into `InstanceWrapper::new` * Make `InstanceWrapper` !Send & !Sync * Avoid using `take_mut` * Update client/executor/wasmtime/Cargo.toml Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Limit maximum size of memory. * Rename `init_state` to `with_initialized_state` Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
23 lines
727 B
TOML
23 lines
727 B
TOML
[package]
|
|
name = "sc-executor-wasmtime"
|
|
version = "0.8.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "GPL-3.0"
|
|
|
|
[dependencies]
|
|
log = "0.4.8"
|
|
wasmi = "0.6.2"
|
|
parity-wasm = "0.41.0"
|
|
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
|
sc-executor-common = { version = "0.8", path = "../common" }
|
|
sp-wasm-interface = { version = "2.0.0", path = "../../../primitives/wasm-interface" }
|
|
sp-runtime-interface = { version = "2.0.0", path = "../../../primitives/runtime-interface" }
|
|
sp-core = { version = "2.0.0", path = "../../../primitives/core" }
|
|
sp-allocator = { version = "2.0.0", path = "../../../primitives/allocator" }
|
|
|
|
wasmtime = "0.11"
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.3.0"
|