mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 05:07:55 +00:00
Upgrade wasmtime to 0.40.0 (#12096)
* Upgrade wasmtime to 0.40.0 * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts * Update in the other Cargo.toml * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts Co-authored-by: command-bot <> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -320,9 +320,7 @@ fn common_config(semantics: &Semantics) -> std::result::Result<wasmtime::Config,
|
||||
wasmtime::ProfilingStrategy::None
|
||||
},
|
||||
};
|
||||
config
|
||||
.profiler(profiler)
|
||||
.map_err(|e| WasmError::Instantiation(format!("fail to set profiler: {:#}", e)))?;
|
||||
config.profiler(profiler);
|
||||
|
||||
let native_stack_max = match semantics.deterministic_stack_limit {
|
||||
Some(DeterministicStackLimit { native_stack_max, .. }) => native_stack_max,
|
||||
@@ -334,9 +332,7 @@ fn common_config(semantics: &Semantics) -> std::result::Result<wasmtime::Config,
|
||||
None => 1024 * 1024,
|
||||
};
|
||||
|
||||
config
|
||||
.max_wasm_stack(native_stack_max as usize)
|
||||
.map_err(|e| WasmError::Other(format!("cannot set max wasm stack: {:#}", e)))?;
|
||||
config.max_wasm_stack(native_stack_max as usize);
|
||||
|
||||
config.parallel_compilation(semantics.parallel_compilation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user