break sp-api dependency cycle (#4352)

* move benches into tests, ignore non-passing doctests

* Rename sr-api folder

* Move test-primitives to primitives, use that for sp-api doctests
This commit is contained in:
Benjamin Kampmann
2019-12-10 20:18:01 +01:00
committed by Bastian Köcher
parent f6f0f1cc16
commit 8721d98dd6
71 changed files with 62 additions and 60 deletions
+30
View File
@@ -0,0 +1,30 @@
[package]
name = "sp-api-test"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
sp-api = { path = "../" }
test-client = { package = "substrate-test-runtime-client", path = "../../../test/utils/runtime/client" }
sp-version = { path = "../../sr-version" }
sp-runtime = { path = "../../runtime" }
sp-blockchain = { path = "../../blockchain" }
consensus_common = { package = "sp-consensus", path = "../../../primitives/consensus/common" }
codec = { package = "parity-scale-codec", version = "1.0.0" }
state-machine = { package = "sp-state-machine", path = "../../../primitives/state-machine" }
trybuild = "1.0.17"
rustversion = "1.0.0"
[dev-dependencies]
criterion = "0.3.0"
test-client = { package = "substrate-test-runtime-client", path = "../../../test/utils/runtime/client" }
[[bench]]
name = "bench"
harness = false
# We only need this to generate the correct code.
[features]
default = [ "std" ]
std = []