mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
Extract execution engines definitions into their own crates (#4489)
* Clean imports in wasmi_execution * Replace `interpret_runtime_api_result` with `pointer_and_len_from_u64`. * Extract sc-executor-common crate * Extract `sc-executor-wasmi` into its own crate * Extract `sc-executor-wasmtime` into its own crate. * Add missing headers. * Clean and docs * Docs for sc-executor-wasmi * Expand a comment about sandboxing * Fix assert_matches * Rename (un)pack_ptr_and_len and move them into util module * Remove wasmtime errors in sc-executor-common
This commit is contained in:
@@ -19,19 +19,13 @@ lazy_static = "1.4.0"
|
||||
sp-wasm-interface = { version = "2.0.0", path = "../../primitives/wasm-interface" }
|
||||
sp-runtime-interface = { version = "2.0.0", path = "../../primitives/runtime-interface" }
|
||||
sp-externalities = { version = "2.0.0", path = "../../primitives/externalities" }
|
||||
sc-executor-common = { version = "2.0.0", path = "common" }
|
||||
sc-executor-wasmi = { version = "2.0.0", path = "wasmi" }
|
||||
sc-executor-wasmtime = { version = "2.0.0", path = "wasmtime", optional = true }
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4.8"
|
||||
libsecp256k1 = "0.3.2"
|
||||
|
||||
cranelift-codegen = { version = "0.50", optional = true }
|
||||
cranelift-entity = { version = "0.50", optional = true }
|
||||
cranelift-frontend = { version = "0.50", optional = true }
|
||||
cranelift-native = { version = "0.50", optional = true }
|
||||
cranelift-wasm = { version = "0.50", optional = true }
|
||||
wasmtime-environ = { version = "0.8", optional = true }
|
||||
wasmtime-jit = { version = "0.8", optional = true }
|
||||
wasmtime-runtime = { version = "0.8", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.3.0"
|
||||
wabt = "0.9.2"
|
||||
@@ -47,14 +41,7 @@ default = [ "std" ]
|
||||
std = []
|
||||
wasm-extern-trace = []
|
||||
wasmtime = [
|
||||
"cranelift-codegen",
|
||||
"cranelift-entity",
|
||||
"cranelift-frontend",
|
||||
"cranelift-native",
|
||||
"cranelift-wasm",
|
||||
"wasmtime-environ",
|
||||
"wasmtime-jit",
|
||||
"wasmtime-runtime",
|
||||
"sc-executor-wasmtime",
|
||||
]
|
||||
wasmi-errno = [
|
||||
"wasmi/errno"
|
||||
|
||||
Reference in New Issue
Block a user