Add native environment to make native source-code compatible with wasm.

Also tests.
This commit is contained in:
Gav
2018-01-10 14:39:56 +01:00
parent 5f86160320
commit ad9037df2d
6 changed files with 108 additions and 48 deletions
+6
View File
@@ -170,6 +170,10 @@ dependencies = [
"regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "environmental"
version = "0.1.0"
[[package]]
name = "error-chain"
version = "0.11.0"
@@ -833,8 +837,10 @@ dependencies = [
name = "runtime-support"
version = "0.1.0"
dependencies = [
"environmental 0.1.0",
"lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
"polkadot-state-machine 0.1.0",
]
[[package]]