mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Upgrade wasm crate dependencies (#12173)
* Upgrade wasm crate dependencies * New wasmi version changed error output a bit * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
6c5d4668d0
commit
5afe00d89c
@@ -23,7 +23,7 @@ serde = { version = "1.0.136", optional = true, features = ["derive"] }
|
||||
byteorder = { version = "1.3.2", default-features = false }
|
||||
primitive-types = { version = "0.11.1", default-features = false, features = ["codec", "scale-info"] }
|
||||
impl-serde = { version = "0.3.0", optional = true }
|
||||
wasmi = { version = "0.9.1", optional = true }
|
||||
wasmi = { version = "0.13", optional = true }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
hash256-std-hasher = { version = "0.15.2", default-features = false }
|
||||
base58 = { version = "0.2.0", optional = true }
|
||||
|
||||
@@ -12,16 +12,10 @@ readme = "README.md"
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasmi = { version = "0.9.1", default-features = false, features = ["core"] }
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
wasmi = "0.9.0"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
|
||||
log = { version = "0.4", default-features = false }
|
||||
wasmi = { version = "0.9.0", optional = true }
|
||||
wasmi = { version = "0.13", default-features = false }
|
||||
sp-core = { version = "6.0.0", default-features = false, path = "../core" }
|
||||
sp-io = { version = "6.0.0", default-features = false, path = "../io" }
|
||||
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
@@ -40,7 +34,7 @@ std = [
|
||||
"sp-io/std",
|
||||
"sp-std/std",
|
||||
"sp-wasm-interface/std",
|
||||
"wasmi",
|
||||
"wasmi/std",
|
||||
]
|
||||
strict = []
|
||||
wasmer-sandbox = []
|
||||
|
||||
@@ -22,7 +22,7 @@ use alloc::string::String;
|
||||
use wasmi::{
|
||||
memory_units::Pages, Externals, FuncInstance, FuncRef, GlobalDescriptor, GlobalRef,
|
||||
ImportResolver, MemoryDescriptor, MemoryInstance, MemoryRef, Module, ModuleInstance, ModuleRef,
|
||||
RuntimeArgs, RuntimeValue, Signature, TableDescriptor, TableRef, Trap, TrapKind,
|
||||
RuntimeArgs, RuntimeValue, Signature, TableDescriptor, TableRef, Trap,
|
||||
};
|
||||
|
||||
use sp_std::{
|
||||
@@ -113,7 +113,7 @@ impl<'a, T> Externals for GuestExternals<'a, T> {
|
||||
ReturnValue::Value(v) => Some(to_wasmi(v)),
|
||||
ReturnValue::Unit => None,
|
||||
}),
|
||||
Err(HostError) => Err(TrapKind::Host(Box::new(DummyHostError)).into()),
|
||||
Err(HostError) => Err(Trap::host(DummyHostError)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
impl-serde = { version = "0.3.1", optional = true }
|
||||
parity-wasm = { version = "0.42.2", optional = true }
|
||||
parity-wasm = { version = "0.45", optional = true }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.136", features = ["derive"], optional = true }
|
||||
thiserror = { version = "1.0.30", optional = true }
|
||||
|
||||
@@ -17,7 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
log = { version = "0.4.17", optional = true }
|
||||
wasmi = { version = "0.9.1", optional = true }
|
||||
wasmi = { version = "0.13", optional = true }
|
||||
wasmtime = { version = "0.40.1", default-features = false, optional = true }
|
||||
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user