Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Implement the runtime part of the sandbox.
  • Loading branch information
pepyakin committed Apr 19, 2018
commit f1df7a55e8b09ef3b2a2312a231dedd875e03d03
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

# NOTE `cargo install wasm-gc` before running this script.
# NOTE `cargo install --git https://github.com/pepyakin/wasm-export-table.git`

set -e
export CARGO_INCREMENTAL=0
Expand Down
1 change: 1 addition & 0 deletions demo/runtime/wasm/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup update stable
cargo install --git https://github.com/alexcrichton/wasm-gc
cargo install --git https://github.com/pepyakin/wasm-export-table.git
1 change: 1 addition & 0 deletions polkadot/runtime/wasm/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup update stable
cargo install --git https://github.com/alexcrichton/wasm-gc
cargo install --git https://github.com/pepyakin/wasm-export-table.git
1 change: 1 addition & 0 deletions substrate/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ log = "0.3"

[dev-dependencies]
assert_matches = "1.1"
wabt = "0.1.7"
3 changes: 3 additions & 0 deletions substrate/executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ extern crate error_chain;
#[cfg(test)]
extern crate assert_matches;

#[cfg(test)]
extern crate wabt;

#[macro_use]
mod wasm_utils;
mod wasm_executor;
#[macro_use]
mod native_executor;
mod sandbox;

pub mod error;
pub use wasm_executor::WasmExecutor;
Expand Down
Loading