From 08ac853719af181cdf56aa65a2ba2f21f84574d4 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 12 Apr 2017 13:58:22 +0300 Subject: [PATCH] initial --- runner/.gitignore | 1 + runner/build.sh | 6 ++++ runner/index.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++ runner/start.sh | 2 ++ 4 files changed, 83 insertions(+) create mode 100644 runner/.gitignore create mode 100755 runner/build.sh create mode 100644 runner/index.html create mode 100755 runner/start.sh diff --git a/runner/.gitignore b/runner/.gitignore new file mode 100644 index 0000000..c585e19 --- /dev/null +++ b/runner/.gitignore @@ -0,0 +1 @@ +out \ No newline at end of file diff --git a/runner/build.sh b/runner/build.sh new file mode 100755 index 0000000..32599dd --- /dev/null +++ b/runner/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# "Compile rust source and put it as a tested contract" + +mkdir -p out +rustc $1 -o out/contract.js -O --target wasm32-unknown-emscripten \ No newline at end of file diff --git a/runner/index.html b/runner/index.html new file mode 100644 index 0000000..283754b --- /dev/null +++ b/runner/index.html @@ -0,0 +1,74 @@ + + + + + + + + \ No newline at end of file diff --git a/runner/start.sh b/runner/start.sh new file mode 100755 index 0000000..fd970b6 --- /dev/null +++ b/runner/start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +python -m SimpleHTTPServer 8000 \ No newline at end of file