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
+3
View File
@@ -31,3 +31,6 @@ rand6 = { package = "rand", version = "0.6", features = ["wasm-bindgen"] }
rand = { version = "0.7", features = ["wasm-bindgen"] }
futures-timer = { version = "3.0.1", features = ["wasm-bindgen"]}
chrono = { version = "0.4", features = ["wasmbind"] }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -9,3 +9,6 @@ repository = "https://github.com/paritytech/substrate/"
description = "Crate with utility functions for `build.rs` scripts."
[dependencies]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -11,3 +11,6 @@ documentation = "https://docs.rs/fork-tree"
[dependencies]
codec = { package = "parity-scale-codec", version = "1.3.0", features = ["derive"] }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -25,3 +25,6 @@ codec = { version = "1.3.0", package = "parity-scale-codec" }
[features]
default = ["rocksdb"]
rocksdb = ["sc-client-db/kvdb-rocksdb"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -21,3 +21,6 @@ sc-rpc-api = { version = "0.8.0-alpha.5", path = "../../../../client/rpc-api" }
[dev-dependencies]
frame-system = { version = "2.0.0-alpha.5", path = "../../../../frame/system" }
tokio = "0.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -28,3 +28,6 @@ sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../../primitive
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../../../test-utils/runtime/client" }
env_logger = "0.7.0"
sc-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../../client/transaction-pool" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -18,3 +18,6 @@ derive_more = "0.99"
async-std = { version = "1.0.1", features = ["unstable"] }
hyper = { version = "0.13.1", default-features = false, features = ["stream"] }
tokio = "0.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -10,3 +10,6 @@ license = "GPL-3.0"
homepage = "https://substrate.dev"
[dependencies]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -19,3 +19,6 @@ fs2 = "0.4.3"
wasm-gc-api = "0.1.11"
atty = "0.2.13"
itertools = "0.8.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]