Skip to content

Commit

Permalink
depend-o-pocalipse (#9450)
Browse files Browse the repository at this point in the history
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 tokio-rs/tracing#1429 )
  • Loading branch information
gilescope authored Aug 13, 2021
1 parent 2d20fe9 commit a5c9554
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
static_assertions = "1.1.0"
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",
] }
log = { version = "0.4.14", default-features = false }

frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" }
Expand All @@ -30,19 +32,21 @@ frame-election-provider-support = { version = "4.0.0-dev", default-features = fa

# Optional imports for benchmarking
frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../benchmarking", optional = true }
rand = { version = "0.7.3", default-features = false, optional = true, features = ["alloc", "small_rng"] }
rand = { version = "0.7.3", default-features = false, optional = true, features = [
"alloc",
"small_rng",
] }

[dev-dependencies]
paste = "1.0.3"
parking_lot = "0.11.0"
rand = { version = "0.7.3" }
hex-literal = "0.3.1"
substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" }
sp-core = { version = "4.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-io = { version = "4.0.0-dev", path = "../../primitives/io" }
sp-npos-elections = { version = "4.0.0-dev", default-features = false, path = "../../primitives/npos-elections" }
sp-tracing = { version = "4.0.0-dev", path = "../../primitives/tracing" }
frame-election-provider-support = { version = "4.0.0-dev", features = ["runtime-benchmarks"], path = "../election-provider-support" }
frame-election-provider-support = { version = "4.0.0-dev", features = [
"runtime-benchmarks",
], path = "../election-provider-support" }
pallet-balances = { version = "4.0.0-dev", path = "../balances" }
frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" }

Expand All @@ -64,8 +68,5 @@ std = [
"frame-election-provider-support/std",
"log/std",
]
runtime-benchmarks = [
"frame-benchmarking",
"rand",
]
runtime-benchmarks = ["frame-benchmarking", "rand"]
try-runtime = ["frame-support/try-runtime"]

0 comments on commit a5c9554

Please sign in to comment.