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
@@ -43,3 +43,6 @@ tempfile = "3.1.0"
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../test-utils/runtime/client" }
kvdb-memorydb = "0.5.0"
sp-panic-handler = { version = "2.0.0-alpha.5", path = "../primitives/panic-handler" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -39,3 +39,6 @@ sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../primitives/tran
[dev-dependencies]
sp-test-primitives = { version = "2.0.0-dev", path = "../../primitives/test-primitives" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -38,3 +38,6 @@ env_logger = "0.7.0"
quickcheck = "0.9.0"
sc-peerset = { version = "2.0.0-alpha.5", path = "../peerset" }
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client"}
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -29,3 +29,6 @@ futures-timer = "3.0.1"
sc-transaction-pool = { version = "2.0.0-alpha.5", path = "../../client/transaction-pool" }
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
parking_lot = "0.10.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -23,3 +23,6 @@ codec = { package = "parity-scale-codec", version = "1.3.0", features = ["derive
[dev-dependencies]
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
sp-trie = { version = "2.0.0-alpha.5", path = "../../primitives/trie" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -17,3 +17,6 @@ serde = { version = "1.0.101", features = ["derive"] }
serde_json = "1.0.41"
sp-runtime = { version = "2.0.0-alpha.5", path = "../../primitives/runtime" }
sc-telemetry = { version = "2.0.0-alpha.5", path = "../telemetry" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -18,3 +18,6 @@ quote = "1.0.3"
syn = "1.0.7"
[dev-dependencies]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -54,3 +54,6 @@ tempfile = "3.1.0"
wasmtime = [
"sc-service/wasmtime",
]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -43,3 +43,6 @@ sc-service = { version = "0.8.0-alpha.5", path = "../../service" }
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../../test-utils/runtime/client" }
env_logger = "0.7.0"
tempfile = "3.1.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -59,3 +59,6 @@ tempfile = "3.1.0"
[features]
test-helpers = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -30,3 +30,6 @@ substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../../../tes
sp-application-crypto = { version = "2.0.0-alpha.5", path = "../../../../primitives/application-crypto" }
sp-keyring = { version = "2.0.0-alpha.5", path = "../../../../primitives/keyring" }
tempfile = "3.1.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -15,3 +15,6 @@ fork-tree = { version = "2.0.0-alpha.5", path = "../../../utils/fork-tree" }
sp-runtime = { path = "../../../primitives/runtime" , version = "2.0.0-alpha.5"}
sp-blockchain = { version = "2.0.0-alpha.5", path = "../../../primitives/blockchain" }
sc-client-api = { path = "../../api" , version = "2.0.0-alpha.5"}
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -35,3 +35,6 @@ substrate-test-runtime-transaction-pool = { path = "../../../test-utils/runtime/
tokio = { version = "0.2", features = ["rt-core", "macros"] }
env_logger = "0.7.0"
tempfile = "3.1.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -23,3 +23,6 @@ log = "0.4.8"
futures = { version = "0.3.1", features = ["compat"] }
sp-timestamp = { version = "2.0.0-alpha.5", path = "../../../primitives/timestamp" }
derive_more = "0.99.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -27,3 +27,6 @@ log = "0.4.8"
[dev-dependencies]
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../../test-utils/runtime/client" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -16,3 +16,6 @@ sp-authorship = { version = "2.0.0-alpha.5", path = "../../../primitives/authors
sp-consensus = { version = "0.8.0-alpha.5", path = "../../../primitives/consensus/common" }
sp-inherents = { version = "2.0.0-alpha.5", path = "../../../primitives/inherents" }
log = "0.4.8"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -43,3 +43,6 @@ tempfile = "3"
[features]
default = []
test-helpers = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -52,3 +52,6 @@ wasmtime = [
wasmi-errno = [
"wasmi/errno"
]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -22,3 +22,6 @@ sp-serializer = { version = "2.0.0-alpha.5", path = "../../../primitives/seriali
[features]
default = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -28,3 +28,6 @@ std = [
"sp-std/std",
"sp-allocator/std",
]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -19,3 +19,6 @@ sp-wasm-interface = { version = "2.0.0-alpha.5", path = "../../../primitives/was
sp-runtime-interface = { version = "2.0.0-alpha.5", path = "../../../primitives/runtime-interface" }
sp-core = { version = "2.0.0-alpha.5", path = "../../../primitives/core" }
sp-allocator = { version = "2.0.0-alpha.5", path = "../../../primitives/allocator" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -22,3 +22,6 @@ wasmtime = { package = "substrate-wasmtime", version = "0.13.0-threadsafe.1" }
[dev-dependencies]
assert_matches = "1.3.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -52,3 +52,6 @@ env_logger = "0.7.0"
tokio = { version = "0.2", features = ["rt-core"] }
tempfile = "3.1.0"
sp-api = { version = "2.0.0-alpha.5", path = "../../primitives/api" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -19,3 +19,6 @@ sc-network = { version = "0.8.0-alpha.5", path = "../network" }
sc-service = { version = "0.8.0-alpha.5", default-features = false, path = "../service" }
sp-blockchain = { version = "2.0.0-alpha.5", path = "../../primitives/blockchain" }
sp-runtime = { version = "2.0.0-alpha.5", path = "../../primitives/runtime" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -22,3 +22,6 @@ parking_lot = "0.10.0"
[dev-dependencies]
tempfile = "3.1.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -22,3 +22,6 @@ wasm-timer = "0.2"
[dev-dependencies]
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -73,3 +73,6 @@ tempfile = "3.1.0"
[features]
default = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -29,3 +29,6 @@ env_logger = "0.7.0"
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../../test-utils/runtime/client" }
substrate-test-runtime = { version = "2.0.0-dev", path = "../../../test-utils/runtime" }
tempfile = "3.1.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -42,3 +42,6 @@ tokio = "0.2"
[features]
default = []
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -19,3 +19,6 @@ wasm-timer = "0.2"
[dev-dependencies]
rand = "0.7.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -25,3 +25,6 @@ serde = { version = "1.0.101", features = ["derive"] }
serde_json = "1.0.41"
sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../primitives/transaction-pool" }
sp-rpc = { version = "2.0.0-alpha.5", path = "../../primitives/rpc" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -19,3 +19,6 @@ sp-runtime = { version = "2.0.0-alpha.5", path = "../../primitives/runtime" }
[target.'cfg(not(target_os = "unknown"))'.dependencies]
http = { package = "jsonrpc-http-server", version = "14.0.3" }
ws = { package = "jsonrpc-ws-server", version = "14.0.3" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -42,3 +42,6 @@ sp-io = { version = "2.0.0-alpha.5", path = "../../primitives/io" }
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
tokio = "0.1.22"
sc-transaction-pool = { version = "2.0.0-alpha.5", path = "../transaction-pool" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -66,3 +66,6 @@ substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-util
sp-consensus-babe = { version = "0.8.0-alpha.5", path = "../../primitives/consensus/babe" }
grandpa = { version = "0.8.0-alpha.5", package = "sc-finality-grandpa", path = "../finality-grandpa" }
grandpa-primitives = { version = "2.0.0-alpha.5", package = "sp-finality-grandpa", path = "../../primitives/finality-grandpa" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -23,3 +23,6 @@ sc-client = { version = "0.8.0-alpha.5", path = "../../" }
sp-runtime = { version = "2.0.0-alpha.5", path = "../../../primitives/runtime" }
sp-core = { version = "2.0.0-alpha.5", path = "../../../primitives/core" }
sp-transaction-pool = { version = "2.0.0-alpha.5", path = "../../../primitives/transaction-pool" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -19,3 +19,6 @@ parity-util-mem-derive = "0.1.0"
[dev-dependencies]
env_logger = "0.7.0"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -26,3 +26,6 @@ slog-json = { version = "2.3.0", features = ["nested-values"] }
slog-scope = "4.1.2"
take_mut = "0.2.2"
void = "1.0.2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
+3
View File
@@ -21,3 +21,6 @@ sc-telemetry = { version = "2.0.0-alpha.5", path = "../telemetry" }
[dev-dependencies]
tracing = "0.1.10"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -32,3 +32,6 @@ hex = "0.4"
sp-keyring = { version = "2.0.0-alpha.5", path = "../../primitives/keyring" }
substrate-test-runtime-transaction-pool = { version = "2.0.0-dev", path = "../../test-utils/runtime/transaction-pool" }
substrate-test-runtime-client = { version = "2.0.0-dev", path = "../../test-utils/runtime/client" }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -31,3 +31,6 @@ criterion = "0.3"
[[bench]]
name = "basics"
harness = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]