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
+11 -10
View File
@@ -11,19 +11,23 @@ readme = "README.md"
[package.metadata.docs.rs]
# let's default to wasm32
default-target = "wasm32-unknown-unknown"
default-target = "wasm32-unknown-unknown"
# with the tracing enabled
features = ["with-tracing"]
# allowing for linux-gnu here, too, allows for `std` to show up as well
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
[dependencies]
sp-std = { version = "4.0.0-dev", path = "../std", default-features = false}
codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"]}
sp-std = { version = "4.0.0-dev", path = "../std", default-features = false }
codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = [
"derive",
] }
tracing = { version = "0.1.25", default-features = false }
tracing-core = { version = "0.1.17", default-features = false }
log = { version = "0.4.8", optional = true }
tracing-subscriber = { version = "0.2.18", optional = true, features = ["tracing-log"] }
tracing-subscriber = { version = "0.2.19", optional = true, features = [
"tracing-log",
] }
parking_lot = { version = "0.10.0", optional = true }
erased-serde = { version = "0.3.9", optional = true }
serde = { version = "1.0.126", optional = true }
@@ -31,11 +35,8 @@ serde_json = { version = "1.0.41", optional = true }
slog = { version = "2.5.2", features = ["nested-values"], optional = true }
[features]
default = [ "std" ]
with-tracing = [
"codec/derive",
"codec/full",
]
default = ["std"]
with-tracing = ["codec/derive", "codec/full"]
std = [
"with-tracing",
"tracing/std",
@@ -48,5 +49,5 @@ std = [
"erased-serde",
"serde",
"serde_json",
"slog"
"slog",
]