Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Migrate from parity-wasmi to wasmi. #103

Merged
merged 1 commit into from
Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion substrate/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ substrate-state-machine = { path = "../state-machine" }
ed25519 = { path = "../ed25519" }
serde = "1.0"
serde_derive = "1.0"
parity-wasm = "0.15.0"
wasmi = "0.1.0"
byteorder = "1.1"
rustc-hex = "1.0.0"
triehash = "0.1.0"
Expand Down
3 changes: 3 additions & 0 deletions substrate/executor/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
//! Rust executor possible errors.

use serializer;
use wasmi;

error_chain! {
foreign_links {
InvalidData(serializer::Error) #[doc = "Unserializable Data"];
Trap(wasmi::Trap) #[doc = "Trap occured during execution"];
Wasmi(wasmi::Error) #[doc = "Wasmi loading/instantiating error"];
}

errors {
Expand Down
8 changes: 1 addition & 7 deletions substrate/executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern crate substrate_state_machine as state_machine;
extern crate ed25519;

extern crate serde;
extern crate parity_wasm;
extern crate wasmi;
extern crate byteorder;
extern crate rustc_hex;
extern crate triehash;
Expand All @@ -47,12 +47,6 @@ extern crate error_chain;
#[cfg(test)]
extern crate assert_matches;

// TODO: move into own crate
macro_rules! map {
($( $name:expr => $value:expr ),*) => (
vec![ $( ( $name, $value ) ),* ].into_iter().collect()
)
}

#[macro_use]
mod wasm_utils;
Expand Down
Loading