mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 01:01:01 +00:00
Upgrade to wasmer 2.2 (#11168)
This commit is contained in:
committed by
GitHub
parent
7a4d5b5ec6
commit
14333e3074
@@ -43,9 +43,8 @@ pub struct Backend {
|
||||
|
||||
impl Backend {
|
||||
pub fn new() -> Self {
|
||||
let compiler = wasmer_compiler_singlepass::Singlepass::default();
|
||||
|
||||
Backend { store: wasmer::Store::new(&wasmer::JIT::new(compiler).engine()) }
|
||||
let compiler = wasmer::Singlepass::default();
|
||||
Backend { store: wasmer::Store::new(&wasmer::Universal::new(compiler).engine()) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,6 +190,7 @@ pub fn instantiate(
|
||||
wasmer::InstantiationError::Start(_) => InstantiationError::StartTrapped,
|
||||
wasmer::InstantiationError::HostEnvInitialization(_) =>
|
||||
InstantiationError::EnvironmentDefinitionCorrupted,
|
||||
wasmer::InstantiationError::CpuFeature(_) => InstantiationError::CpuFeature,
|
||||
})
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user