fully refactor runtime-std to use conditional compilation

This commit is contained in:
Robert Habermeier
2018-01-30 23:47:29 +01:00
parent 2c39e247d6
commit 4b2bd5ec72
22 changed files with 946 additions and 124 deletions
+17 -2
View File
@@ -1,6 +1,21 @@
[package]
name = "runtime-std"
name = "polkadot-runtime-std"
version = "0.1.0"
authors = ["Robert Habermeier <rphmeier@gmail.com>"]
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
[build-dependencies]
rustc_version = "0.2"
[dependencies]
pwasm-alloc = { path = "../wasm-runtime/pwasm-alloc", version = "0.1" }
pwasm-libc = { path = "../wasm-runtime/pwasm-libc", version = "0.1" }
environmental = { path = "../environmental", version = "0.1", optional = true }
polkadot-state-machine = { path = "../state-machine", version = "0.1", optional = true }
polkadot-primitives = { path = "../primitives", version = "0.1", optional = true }
[features]
default = ["std"]
std = ["environmental", "polkadot-state-machine", "polkadot-primitives"]
nightly = []
strict = []