Build for only one target for docs.rs (#5427)

* Add docs.rs metadata to all cargo.toml files

* Remove docs.rs metada in substrate's cargo.toml
This commit is contained in:
pscott
2020-03-30 09:46:30 +02:00
committed by GitHub
parent ab0366a076
commit 408455f8bc
173 changed files with 519 additions and 0 deletions
@@ -43,3 +43,6 @@ std = [
# Disables static assertions in `impls.rs` that checks the word size. To prevent any footgun, the
# check is changed into a runtime check.
disable_target_static_assertions = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -18,3 +18,6 @@ quote = "1.0.3"
proc-macro2 = "1.0.3"
Inflector = "0.11.4"
proc-macro-crate = "0.1.4"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -21,3 +21,6 @@ wasm-builder-runner = { version = "1.0.5", package = "substrate-wasm-builder-run
[features]
default = [ "std" ]
std = [ "sp-runtime-interface/std", "sp-std/std", "sp-core/std", "sp-io/std" ]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -21,3 +21,6 @@ wasm-builder-runner = { version = "1.0.5", package = "substrate-wasm-builder-run
[features]
default = [ "std" ]
std = [ "sp-runtime-interface/std", "sp-std/std", "sp-core/std", "sp-io/std" ]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -16,3 +16,6 @@ sp-runtime-interface-test-wasm-deprecated = { version = "2.0.0-dev", path = "../
sp-state-machine = { version = "0.8.0-alpha.5", path = "../../../primitives/state-machine" }
sp-runtime = { version = "2.0.0-alpha.5", path = "../../runtime" }
sp-io = { version = "2.0.0-alpha.5", path = "../../io" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]