depend-o-pocalipse (#9450)

Remove unneeded dependencies and dev-dependencies.
Made self_destruct test not dependent on wasm bin size.  
Updated code related to deprecated warning on tracing-subscriber `scope()` 
( See https://github.com/tokio-rs/tracing/issues/1429 )
This commit is contained in:
Squirrel
2021-08-13 15:18:37 +01:00
committed by GitHub
parent 76504e56d7
commit 7e9b8d278e
129 changed files with 487 additions and 726 deletions
+3 -2
View File
@@ -13,7 +13,6 @@ log = "0.4.8"
node-primitives = { version = "2.0.0", path = "../primitives" }
node-testing = { version = "3.0.0-dev", path = "../testing" }
node-runtime = { version = "3.0.0-dev", path = "../runtime" }
sc-cli = { version = "0.10.0-dev", path = "../../../client/cli" }
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api/" }
sp-runtime = { version = "4.0.0-dev", path = "../../../primitives/runtime" }
sp-state-machine = { version = "0.10.0-dev", path = "../../../primitives/state-machine" }
@@ -36,7 +35,9 @@ fs_extra = "1"
hex = "0.4.0"
rand = { version = "0.7.2", features = ["small_rng"] }
lazy_static = "1.4.0"
parity-util-mem = { version = "0.10.0", default-features = false, features = ["primitive-types"] }
parity-util-mem = { version = "0.10.0", default-features = false, features = [
"primitive-types",
] }
parity-db = { version = "0.3" }
sc-transaction-pool = { version = "4.0.0-dev", path = "../../../client/transaction-pool" }
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../../../client/transaction-pool/api" }
@@ -7,18 +7,16 @@ edition = "2018"
license = "Apache-2.0"
[dependencies]
futures-timer = "3.0.2"
libp2p = { version = "0.37.1", default-features = false }
jsonrpc-core = "18.0.0"
serde = "1.0.126"
serde_json = "1.0.48"
wasm-bindgen = { version = "=0.2.73", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.18"
wasm-bindgen-test = "0.3.18"
futures = "0.3.9"
node-cli = { path = "../cli", default-features = false, features = ["browser"], version = "3.0.0-dev"}
sc-rpc-api = { path = "../../../client/rpc-api", version = "0.10.0-dev"}
node-cli = { path = "../cli", default-features = false, features = [
"browser",
], version = "3.0.0-dev" }
# This is a HACK to make browser tests pass.
# enables [`instant/wasm_bindgen`]
+20 -26
View File
@@ -41,10 +41,9 @@ hex-literal = "0.3.1"
log = "0.4.8"
rand = "0.7.2"
structopt = { version = "0.3.8", optional = true }
parking_lot = "0.11.1"
# primitives
sp-authority-discovery = { version = "4.0.0-dev", path = "../../../primitives/authority-discovery" }
sp-authority-discovery = { version = "4.0.0-dev", path = "../../../primitives/authority-discovery" }
sp-consensus-babe = { version = "0.10.0-dev", path = "../../../primitives/consensus/babe" }
grandpa-primitives = { version = "4.0.0-dev", package = "sp-finality-grandpa", path = "../../../primitives/finality-grandpa" }
sp-core = { version = "4.0.0-dev", path = "../../../primitives/core" }
@@ -54,7 +53,6 @@ sp-authorship = { version = "4.0.0-dev", path = "../../../primitives/authorship"
sp-inherents = { version = "4.0.0-dev", path = "../../../primitives/inherents" }
sp-keyring = { version = "4.0.0-dev", path = "../../../primitives/keyring" }
sp-keystore = { version = "0.10.0-dev", path = "../../../primitives/keystore" }
sp-io = { version = "4.0.0-dev", path = "../../../primitives/io" }
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
sp-transaction-pool = { version = "4.0.0-dev", path = "../../../primitives/transaction-pool" }
sp-transaction-storage-proof = { version = "4.0.0-dev", path = "../../../primitives/transaction-storage-proof" }
@@ -70,28 +68,17 @@ sc-consensus-slots = { version = "0.10.0-dev", path = "../../../client/consensus
sc-consensus-babe = { version = "0.10.0-dev", path = "../../../client/consensus/babe" }
sc-consensus-uncles = { version = "0.10.0-dev", path = "../../../client/consensus/uncles" }
grandpa = { version = "0.10.0-dev", package = "sc-finality-grandpa", path = "../../../client/finality-grandpa" }
sc-client-db = { version = "0.10.0-dev", default-features = false, path = "../../../client/db" }
sc-offchain = { version = "4.0.0-dev", path = "../../../client/offchain" }
sc-rpc = { version = "4.0.0-dev", path = "../../../client/rpc" }
sc-basic-authorship = { version = "0.10.0-dev", path = "../../../client/basic-authorship" }
sc-service = { version = "0.10.0-dev", default-features = false, path = "../../../client/service" }
sc-tracing = { version = "4.0.0-dev", path = "../../../client/tracing" }
sc-telemetry = { version = "4.0.0-dev", path = "../../../client/telemetry" }
sc-authority-discovery = { version = "0.10.0-dev", path = "../../../client/authority-discovery" }
sc-authority-discovery = { version = "0.10.0-dev", path = "../../../client/authority-discovery" }
sc-sync-state-rpc = { version = "0.10.0-dev", path = "../../../client/sync-state-rpc" }
# frame dependencies
pallet-indices = { version = "4.0.0-dev", path = "../../../frame/indices" }
pallet-timestamp = { version = "4.0.0-dev", default-features = false, path = "../../../frame/timestamp" }
pallet-contracts = { version = "4.0.0-dev", path = "../../../frame/contracts" }
frame-system = { version = "4.0.0-dev", path = "../../../frame/system" }
pallet-balances = { version = "4.0.0-dev", path = "../../../frame/balances" }
pallet-transaction-payment = { version = "4.0.0-dev", path = "../../../frame/transaction-payment" }
frame-support = { version = "4.0.0-dev", default-features = false, path = "../../../frame/support" }
pallet-im-online = { version = "4.0.0-dev", default-features = false, path = "../../../frame/im-online" }
pallet-authority-discovery = { version = "4.0.0-dev", path = "../../../frame/authority-discovery" }
pallet-staking = { version = "4.0.0-dev", path = "../../../frame/staking" }
pallet-grandpa = { version = "4.0.0-dev", path = "../../../frame/grandpa" }
# node-specific dependencies
node-runtime = { version = "3.0.0-dev", path = "../runtime" }
@@ -108,14 +95,24 @@ try-runtime-cli = { version = "0.10.0-dev", optional = true, path = "../../../ut
# WASM-specific dependencies
wasm-bindgen = { version = "0.2.73", optional = true }
wasm-bindgen-futures = { version = "0.4.18", optional = true }
browser-utils = { package = "substrate-browser-utils", path = "../../../utils/browser", optional = true, version = "0.10.0-dev"}
libp2p-wasm-ext = { version = "0.28", features = ["websocket"], optional = true }
browser-utils = { package = "substrate-browser-utils", path = "../../../utils/browser", optional = true, version = "0.10.0-dev" }
libp2p-wasm-ext = { version = "0.28", features = [
"websocket",
], optional = true }
[target.'cfg(target_arch="x86_64")'.dependencies]
node-executor = { version = "3.0.0-dev", path = "../executor", features = [ "wasmtime" ] }
sc-cli = { version = "0.10.0-dev", optional = true, path = "../../../client/cli", features = [ "wasmtime" ] }
sc-service = { version = "0.10.0-dev", default-features = false, path = "../../../client/service", features = [ "wasmtime" ] }
sp-trie = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/trie", features = ["memory-tracker"] }
node-executor = { version = "3.0.0-dev", path = "../executor", features = [
"wasmtime",
] }
sc-cli = { version = "0.10.0-dev", optional = true, path = "../../../client/cli", features = [
"wasmtime",
] }
sc-service = { version = "0.10.0-dev", default-features = false, path = "../../../client/service", features = [
"wasmtime",
] }
sp-trie = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/trie", features = [
"memory-tracker",
] }
[dev-dependencies]
sc-keystore = { version = "4.0.0-dev", path = "../../../client/keystore" }
@@ -148,7 +145,7 @@ path = "../../../client/cli"
optional = true
[features]
default = [ "cli" ]
default = ["cli"]
browser = [
"browser-utils",
"wasm-bindgen",
@@ -172,7 +169,4 @@ runtime-benchmarks = [
]
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
# in the near future.
try-runtime = [
"node-runtime/try-runtime",
"try-runtime-cli",
]
try-runtime = ["node-runtime/try-runtime", "try-runtime-cli"]
@@ -78,8 +78,9 @@ impl<'a> ExportImportRevertExecutor<'a> {
let sub_command_str = sub_command.to_string();
// Adding "--binary" if need be.
let arguments: Vec<&str> = match format_opt {
FormatOpt::Binary =>
vec![&sub_command_str, "--dev", "--pruning", "archive", "--binary", "-d"],
FormatOpt::Binary => {
vec![&sub_command_str, "--dev", "--pruning", "archive", "--binary", "-d"]
},
FormatOpt::Json => vec![&sub_command_str, "--dev", "--pruning", "archive", "-d"],
};
+2 -13
View File
@@ -18,10 +18,8 @@ node-runtime = { version = "3.0.0-dev", path = "../runtime" }
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor" }
sp-core = { version = "4.0.0-dev", path = "../../../primitives/core" }
sp-keystore = { version = "0.10.0-dev", path = "../../../primitives/keystore" }
sp-io = { version = "4.0.0-dev", path = "../../../primitives/io" }
sp-state-machine = { version = "0.10.0-dev", path = "../../../primitives/state-machine" }
sp-trie = { version = "4.0.0-dev", path = "../../../primitives/trie" }
trie-root = "0.16.0"
frame-benchmarking = { version = "4.0.0-dev", path = "../../../frame/benchmarking" }
[dev-dependencies]
@@ -31,28 +29,19 @@ frame-system = { version = "4.0.0-dev", path = "../../../frame/system" }
node-testing = { version = "3.0.0-dev", path = "../testing" }
pallet-balances = { version = "4.0.0-dev", path = "../../../frame/balances" }
pallet-contracts = { version = "4.0.0-dev", path = "../../../frame/contracts" }
pallet-grandpa = { version = "4.0.0-dev", path = "../../../frame/grandpa" }
pallet-im-online = { version = "4.0.0-dev", path = "../../../frame/im-online" }
pallet-indices = { version = "4.0.0-dev", path = "../../../frame/indices" }
pallet-session = { version = "4.0.0-dev", path = "../../../frame/session" }
pallet-timestamp = { version = "4.0.0-dev", path = "../../../frame/timestamp" }
pallet-transaction-payment = { version = "4.0.0-dev", path = "../../../frame/transaction-payment" }
pallet-treasury = { version = "4.0.0-dev", path = "../../../frame/treasury" }
sp-application-crypto = { version = "4.0.0-dev", path = "../../../primitives/application-crypto" }
sp-consensus-babe = { version = "0.10.0-dev", path = "../../../primitives/consensus/babe" }
sp-runtime = { version = "4.0.0-dev", path = "../../../primitives/runtime" }
sp-externalities = { version = "0.10.0-dev", path = "../../../primitives/externalities" }
substrate-test-client = { version = "2.0.0", path = "../../../test-utils/client" }
wat = "1.0"
futures = "0.3.9"
[features]
wasmtime = [
"sc-executor/wasmtime",
]
wasmi-errno = [
"sc-executor/wasmi-errno",
]
wasmtime = ["sc-executor/wasmtime"]
wasmi-errno = ["sc-executor/wasmi-errno"]
stress-test = []
[[bench]]
-1
View File
@@ -13,7 +13,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0" }
derive_more = "0.99"
log = "0.4.8"
sc-cli = { version = "0.10.0-dev", path = "../../../client/cli" }
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api" }
sc-service = { version = "0.10.0-dev", default-features = false, path = "../../../client/service" }
+3 -5
View File
@@ -11,16 +11,14 @@ repository = "https://github.com/paritytech/substrate/"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = [
"derive",
] }
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../../frame/system" }
sp-application-crypto = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/application-crypto" }
sp-core = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/core" }
sp-runtime = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/runtime" }
[dev-dependencies]
sp-serializer = { version = "3.0.0", path = "../../../primitives/serializer" }
pretty_assertions = "0.6.1"
[features]
default = ["std"]
std = [
+3 -2
View File
@@ -12,8 +12,9 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
futures = "0.3.16"
jsonrpc-core-client = { version = "18.0.0", default-features = false, features = ["http"] }
log = "0.4.8"
jsonrpc-core-client = { version = "18.0.0", default-features = false, features = [
"http",
] }
node-primitives = { version = "2.0.0", path = "../primitives" }
sp-tracing = { version = "4.0.0-dev", path = "../../../primitives/tracing" }
sc-rpc = { version = "4.0.0-dev", path = "../../../client/rpc" }
-1
View File
@@ -23,7 +23,6 @@ sc-consensus-epochs = { version = "0.10.0-dev", path = "../../../client/consensu
sc-chain-spec = { version = "4.0.0-dev", path = "../../../client/chain-spec" }
sc-finality-grandpa = { version = "0.10.0-dev", path = "../../../client/finality-grandpa" }
sc-finality-grandpa-rpc = { version = "0.10.0-dev", path = "../../../client/finality-grandpa/rpc" }
sc-keystore = { version = "4.0.0-dev", path = "../../../client/keystore" }
sc-rpc-api = { version = "0.10.0-dev", path = "../../../client/rpc-api" }
sc-rpc = { version = "4.0.0-dev", path = "../../../client/rpc" }
sc-sync-state-rpc = { version = "0.10.0-dev", path = "../../../client/sync-state-rpc" }
+10 -7
View File
@@ -14,7 +14,10 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
# third-party dependencies
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = ["derive", "max-encoded-len"] }
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = [
"derive",
"max-encoded-len",
] }
static_assertions = "1.1.0"
hex-literal = { version = "0.3.1", optional = true }
log = { version = "0.4.14", default-features = false }
@@ -22,7 +25,7 @@ log = { version = "0.4.14", default-features = false }
# primitives
sp-authority-discovery = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/authority-discovery" }
sp-consensus-babe = { version = "0.10.0-dev", default-features = false, path = "../../../primitives/consensus/babe" }
sp-block-builder = { path = "../../../primitives/block-builder", default-features = false, version = "4.0.0-dev"}
sp-block-builder = { path = "../../../primitives/block-builder", default-features = false, version = "4.0.0-dev" }
sp-inherents = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/inherents" }
node-primitives = { version = "2.0.0", default-features = false, path = "../primitives" }
sp-offchain = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/offchain" }
@@ -73,7 +76,9 @@ pallet-offences-benchmarking = { version = "4.0.0-dev", path = "../../../frame/o
pallet-proxy = { version = "4.0.0-dev", default-features = false, path = "../../../frame/proxy" }
pallet-randomness-collective-flip = { version = "4.0.0-dev", default-features = false, path = "../../../frame/randomness-collective-flip" }
pallet-recovery = { version = "4.0.0-dev", default-features = false, path = "../../../frame/recovery" }
pallet-session = { version = "4.0.0-dev", features = ["historical"], path = "../../../frame/session", default-features = false }
pallet-session = { version = "4.0.0-dev", features = [
"historical",
], path = "../../../frame/session", default-features = false }
pallet-session-benchmarking = { version = "4.0.0-dev", path = "../../../frame/session/benchmarking", default-features = false, optional = true }
pallet-staking = { version = "4.0.0-dev", default-features = false, path = "../../../frame/staking" }
pallet-staking-reward-curve = { version = "4.0.0-dev", default-features = false, path = "../../../frame/staking/reward-curve" }
@@ -98,7 +103,7 @@ sp-io = { version = "4.0.0-dev", path = "../../../primitives/io" }
[features]
default = ["std"]
with-tracing = [ "frame-executive/with-tracing" ]
with-tracing = ["frame-executive/with-tracing"]
std = [
"sp-authority-discovery/std",
"pallet-assets/std",
@@ -247,6 +252,4 @@ try-runtime = [
]
# Make contract callable functions marked as __unstable__ available. Do not enable
# on live chains as those are subject to change.
contracts-unstable-interface = [
"pallet-contracts/unstable-interface"
]
contracts-unstable-interface = ["pallet-contracts/unstable-interface"]
@@ -9,10 +9,7 @@ publish = false
test-runner = { path = "../../../test-utils/test-runner" }
frame-system = { path = "../../../frame/system" }
frame-support = { path = "../../../frame/support" }
frame-benchmarking = { path = "../../../frame/benchmarking" }
pallet-balances = { path = "../../../frame/balances" }
pallet-sudo = { path = "../../../frame/sudo" }
pallet-transaction-payment = { path = "../../../frame/transaction-payment" }
node-runtime = { path = "../runtime" }
@@ -25,16 +22,7 @@ sc-consensus-babe = { path = "../../../client/consensus/babe" }
sc-consensus-manual-seal = { path = "../../../client/consensus/manual-seal" }
sc-service = { default-features = false, path = "../../../client/service" }
sc-executor = { path = "../../../client/executor" }
sc-client-api = { path = "../../../client/api" }
sc-network = { path = "../../../client/network" }
sc-informant = { path = "../../../client/informant" }
sc-consensus = { path = "../../../client/consensus/common" }
sp-runtime = { path = "../../../primitives/runtime" }
sp-keyring = { path = "../../../primitives/keyring" }
sp-timestamp = { path = "../../../primitives/timestamp" }
sp-api = { path = "../../../primitives/api" }
sp-inherents = { path = "../../../primitives/inherents" }
sp-keystore = { path = "../../../primitives/keystore" }
log = "0.4.14"
+11 -17
View File
@@ -13,33 +13,31 @@ publish = true
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
pallet-balances = { version = "4.0.0-dev", path = "../../../frame/balances" }
sc-service = { version = "0.10.0-dev", features = ["test-helpers", "db"], path = "../../../client/service" }
sc-client-db = { version = "0.10.0-dev", path = "../../../client/db/", features = ["kvdb-rocksdb", "parity-db"] }
sc-service = { version = "0.10.0-dev", features = [
"test-helpers",
"db",
], path = "../../../client/service" }
sc-client-db = { version = "0.10.0-dev", path = "../../../client/db/", features = [
"kvdb-rocksdb",
"parity-db",
] }
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api/" }
sc-consensus = { version = "0.10.0-dev", path = "../../../client/consensus/common" }
codec = { package = "parity-scale-codec", version = "2.0.0" }
pallet-contracts = { version = "4.0.0-dev", path = "../../../frame/contracts" }
pallet-grandpa = { version = "4.0.0-dev", path = "../../../frame/grandpa" }
pallet-indices = { version = "4.0.0-dev", path = "../../../frame/indices" }
sp-keyring = { version = "4.0.0-dev", path = "../../../primitives/keyring" }
node-executor = { version = "3.0.0-dev", path = "../executor" }
node-primitives = { version = "2.0.0", path = "../primitives" }
node-runtime = { version = "3.0.0-dev", path = "../runtime" }
sp-core = { version = "4.0.0-dev", path = "../../../primitives/core" }
sp-io = { version = "4.0.0-dev", path = "../../../primitives/io" }
frame-support = { version = "4.0.0-dev", path = "../../../frame/support" }
pallet-session = { version = "4.0.0-dev", path = "../../../frame/session" }
pallet-society = { version = "4.0.0-dev", path = "../../../frame/society" }
sp-runtime = { version = "4.0.0-dev", path = "../../../primitives/runtime" }
pallet-staking = { version = "4.0.0-dev", path = "../../../frame/staking" }
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor", features = ["wasmtime"] }
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor", features = [
"wasmtime",
] }
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
frame-system = { version = "4.0.0-dev", path = "../../../frame/system" }
substrate-test-client = { version = "2.0.0", path = "../../../test-utils/client" }
pallet-timestamp = { version = "4.0.0-dev", path = "../../../frame/timestamp" }
pallet-transaction-payment = { version = "4.0.0-dev", path = "../../../frame/transaction-payment" }
pallet-treasury = { version = "4.0.0-dev", path = "../../../frame/treasury" }
sp-api = { version = "4.0.0-dev", path = "../../../primitives/api" }
sp-timestamp = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/timestamp" }
sp-block-builder = { version = "4.0.0-dev", path = "../../../primitives/block-builder" }
@@ -50,7 +48,3 @@ log = "0.4.8"
tempfile = "3.1.0"
fs_extra = "1"
futures = "0.3.1"
[dev-dependencies]
criterion = "0.3.0"
sc-cli = { version = "0.10.0-dev", path = "../../../client/cli" }