Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Clean a number of sp_io imports (#6072)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma authored May 19, 2020
1 parent 0947c5b commit 9891eab
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 33 deletions.
8 changes: 3 additions & 5 deletions frame/aura/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ targets = ["x86_64-unknown-linux-gnu"]
sp-application-crypto = { version = "2.0.0-dev", default-features = false, path = "../../primitives/application-crypto" }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-inherents = { version = "2.0.0-dev", default-features = false, path = "../../primitives/inherents" }
sp-core = { version = "2.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
serde = { version = "1.0.101", optional = true }
pallet-session = { version = "2.0.0-dev", default-features = false, path = "../session" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
sp-io ={ path = "../../primitives/io", default-features = false , version = "2.0.0-dev"}
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
sp-consensus-aura = { path = "../../primitives/consensus/aura", default-features = false, version = "0.8.0-dev"}
sp-consensus-aura = { version = "0.8.0-dev", path = "../../primitives/consensus/aura", default-features = false }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }
sp-timestamp = { version = "2.0.0-dev", default-features = false, path = "../../primitives/timestamp" }
pallet-timestamp = { version = "2.0.0-dev", default-features = false, path = "../timestamp" }


[dev-dependencies]
sp-core = { version = "2.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-io ={ version = "2.0.0-dev", path = "../../primitives/io" }
lazy_static = "1.4.0"
parking_lot = "0.10.0"

Expand All @@ -38,8 +38,6 @@ std = [
"sp-application-crypto/std",
"codec/std",
"sp-inherents/std",
"sp-io/std",
"sp-core/std",
"sp-std/std",
"serde",
"sp-runtime/std",
Expand Down
6 changes: 2 additions & 4 deletions frame/authority-discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ targets = ["x86_64-unknown-linux-gnu"]
sp-authority-discovery = { version = "2.0.0-dev", default-features = false, path = "../../primitives/authority-discovery" }
sp-application-crypto = { version = "2.0.0-dev", default-features = false, path = "../../primitives/application-crypto" }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-core = { version = "2.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
serde = { version = "1.0.101", optional = true }
sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primitives/io" }
pallet-session = { version = "2.0.0-dev", features = ["historical" ], path = "../session", default-features = false }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }

[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
sp-io = { version = "2.0.0-dev", path = "../../primitives/io" }
sp-staking = { version = "2.0.0-dev", default-features = false, path = "../../primitives/staking" }

[features]
Expand All @@ -33,8 +33,6 @@ std = [
"sp-application-crypto/std",
"sp-authority-discovery/std",
"codec/std",
"sp-core/std",
"sp-io/std",
"sp-std/std",
"serde",
"pallet-session/std",
Expand Down
8 changes: 4 additions & 4 deletions frame/authorship/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ repository = "https://github.com/paritytech/substrate/"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
sp-core = { version = "2.0.0-dev", default-features = false, path = "../../primitives/core" }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-inherents = { version = "2.0.0-dev", default-features = false, path = "../../primitives/inherents" }
sp-authorship = { version = "2.0.0-dev", default-features = false, path = "../../primitives/authorship" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }
sp-io ={ path = "../../primitives/io", default-features = false , version = "2.0.0-dev"}
impl-trait-for-tuples = "0.1.3"

[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
sp-io ={ version = "2.0.0-dev", path = "../../primitives/io" }

[features]
default = ["std"]
std = [
"codec/std",
"sp-core/std",
"sp-inherents/std",
"sp-runtime/std",
"sp-std/std",
"frame-support/std",
"frame-system/std",
"sp-io/std",
"sp-authorship/std",
]
4 changes: 2 additions & 2 deletions frame/babe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ sp-timestamp = { version = "2.0.0-dev", default-features = false, path = "../../
pallet-session = { version = "2.0.0-dev", default-features = false, path = "../session" }
sp-consensus-babe = { version = "0.8.0-dev", default-features = false, path = "../../primitives/consensus/babe" }
sp-consensus-vrf = { version = "0.8.0-dev", default-features = false, path = "../../primitives/consensus/vrf" }
sp-io = { path = "../../primitives/io", default-features = false , version = "2.0.0-dev"}
sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primitives/io" }

[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"serde",
"sp-std/std",
"sp-application-crypto/std",
"frame-support/std",
Expand Down
3 changes: 1 addition & 2 deletions frame/balances/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ targets = ["x86_64-unknown-linux-gnu"]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primitives/io" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
frame-benchmarking = { version = "2.0.0-dev", default-features = false, path = "../benchmarking", optional = true }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }

[dev-dependencies]
sp-io = { version = "2.0.0-dev", path = "../../primitives/io" }
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
pallet-transaction-payment = { version = "2.0.0-dev", path = "../transaction-payment" }

Expand All @@ -31,7 +31,6 @@ std = [
"serde",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-runtime/std",
"frame-benchmarking/std",
"frame-support/std",
Expand Down
2 changes: 1 addition & 1 deletion frame/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sp-api = { version = "2.0.0-dev", path = "../../primitives/api", default-feature
sp-runtime-interface = { version = "2.0.0-dev", path = "../../primitives/runtime-interface", default-features = false }
sp-runtime = { version = "2.0.0-dev", path = "../../primitives/runtime", default-features = false }
sp-std = { version = "2.0.0-dev", path = "../../primitives/std", default-features = false }
sp-io = { path = "../../primitives/io", default-features = false, version = "2.0.0-dev"}
sp-io = { version = "2.0.0-dev", path = "../../primitives/io", default-features = false }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }

Expand Down
2 changes: 1 addition & 1 deletion frame/executive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primiti
[dev-dependencies]
hex-literal = "0.2.1"
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
sp-io ={ path = "../../primitives/io", version = "2.0.0-dev"}
sp-io ={ version = "2.0.0-dev", path = "../../primitives/io" }
pallet-indices = { version = "2.0.0-dev", path = "../indices" }
pallet-balances = { version = "2.0.0-dev", path = "../balances" }
pallet-transaction-payment = { version = "2.0.0-dev", path = "../transaction-payment" }
Expand Down
4 changes: 1 addition & 3 deletions frame/offences/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pallet-im-online = { version = "2.0.0-dev", default-features = false, path = "..
pallet-offences = { version = "2.0.0-dev", default-features = false, features = ["runtime-benchmarks"], path = "../../offences" }
pallet-session = { version = "2.0.0-dev", default-features = false, path = "../../session" }
pallet-staking = { version = "2.0.0-dev", default-features = false, features = ["runtime-benchmarks"], path = "../../staking" }
sp-io = { path = "../../../primitives/io", default-features = false, version = "2.0.0-dev"}
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../../primitives/runtime" }
sp-staking = { version = "2.0.0-dev", default-features = false, path = "../../../primitives/staking" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../../primitives/std" }
Expand All @@ -34,7 +33,7 @@ pallet-staking-reward-curve = { version = "2.0.0-dev", path = "../../staking/rew
pallet-timestamp = { version = "2.0.0-dev", path = "../../timestamp" }
serde = { version = "1.0.101" }
sp-core = { version = "2.0.0-dev", path = "../../../primitives/core" }
sp-io ={ path = "../../../primitives/io", version = "2.0.0-dev"}
sp-io = { version = "2.0.0-dev", path = "../../../primitives/io" }

[features]
default = ["std"]
Expand All @@ -52,5 +51,4 @@ std = [
"sp-runtime/std",
"sp-staking/std",
"sp-std/std",
"sp-io/std",
]
5 changes: 2 additions & 3 deletions frame/session/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ sp-staking = { version = "2.0.0-dev", default-features = false, path = "../../pr
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }
pallet-timestamp = { version = "2.0.0-dev", default-features = false, path = "../timestamp" }
sp-trie = { optional = true, path = "../../primitives/trie", default-features = false, version = "2.0.0-dev"}
sp-io ={ path = "../../primitives/io", default-features = false , version = "2.0.0-dev"}
sp-trie = { version = "2.0.0-dev", optional = true, default-features = false, path = "../../primitives/trie" }
impl-trait-for-tuples = "0.1.3"

[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
sp-io ={ version = "2.0.0-dev", path = "../../primitives/io" }
sp-application-crypto = { version = "2.0.0-dev", path = "../../primitives/application-crypto" }
lazy_static = "1.4.0"

Expand All @@ -43,5 +43,4 @@ std = [
"sp-staking/std",
"pallet-timestamp/std",
"sp-trie/std",
"sp-io/std",
]
2 changes: 1 addition & 1 deletion frame/session/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde = { version = "1.0.101" }
codec = { package = "parity-scale-codec", version = "1.3.0", features = ["derive"] }
sp-core = { version = "2.0.0-dev", path = "../../../primitives/core" }
pallet-staking-reward-curve = { version = "2.0.0-dev", path = "../../staking/reward-curve" }
sp-io ={ path = "../../../primitives/io", version = "2.0.0-dev"}
sp-io ={ version = "2.0.0-dev", path = "../../../primitives/io" }
pallet-timestamp = { version = "2.0.0-dev", path = "../../timestamp" }
pallet-balances = { version = "2.0.0-dev", path = "../../balances" }

Expand Down
3 changes: 1 addition & 2 deletions frame/society/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-io ={ path = "../../primitives/io", default-features = false , version = "2.0.0-dev"}
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
Expand All @@ -23,14 +22,14 @@ rand_chacha = { version = "0.2", default-features = false }

[dev-dependencies]
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
sp-io ={ version = "2.0.0-dev", path = "../../primitives/io" }
pallet-balances = { version = "2.0.0-dev", path = "../balances" }

[features]
default = ["std"]
std = [
"codec/std",
"serde",
"sp-io/std",
"sp-runtime/std",
"rand_chacha/std",
"sp-std/std",
Expand Down
2 changes: 1 addition & 1 deletion frame/support/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
serde = { version = "1.0.101", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-io ={ path = "../../../primitives/io", default-features = false , version = "2.0.0-dev"}
sp-io ={ version = "2.0.0-dev", path = "../../../primitives/io", default-features = false }
sp-state-machine = { version = "0.8.0-dev", optional = true, path = "../../../primitives/state-machine" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../" }
sp-inherents = { version = "2.0.0-dev", default-features = false, path = "../../../primitives/inherents" }
Expand Down
2 changes: 1 addition & 1 deletion frame/system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ serde = { version = "1.0.101", optional = true, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
sp-core = { version = "2.0.0-dev", default-features = false, path = "../../primitives/core" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
sp-io = { path = "../../primitives/io", default-features = false, version = "2.0.0-dev"}
sp-io = { version = "2.0.0-dev", path = "../../primitives/io", default-features = false }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
sp-version = { version = "2.0.0-dev", default-features = false, path = "../../primitives/version" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
Expand Down
2 changes: 1 addition & 1 deletion frame/system/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sp-core = { version = "2.0.0-dev", default-features = false, path = "../../../pr

[dev-dependencies]
serde = { version = "1.0.101" }
sp-io ={ path = "../../../primitives/io", version = "2.0.0-dev"}
sp-io ={ version = "2.0.0-dev", path = "../../../primitives/io" }

[features]
default = ["std"]
Expand Down
3 changes: 1 addition & 2 deletions frame/vesting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ serde = { version = "1.0.101", optional = true }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] }
enumflags2 = { version = "0.6.2" }
sp-std = { version = "2.0.0-dev", default-features = false, path = "../../primitives/std" }
sp-io = { version = "2.0.0-dev", default-features = false, path = "../../primitives/io" }
sp-runtime = { version = "2.0.0-dev", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0-dev", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-dev", default-features = false, path = "../system" }
frame-benchmarking = { version = "2.0.0-dev", default-features = false, path = "../benchmarking", optional = true }

[dev-dependencies]
sp-io = { version = "2.0.0-dev", path = "../../primitives/io" }
sp-core = { version = "2.0.0-dev", path = "../../primitives/core" }
pallet-balances = { version = "2.0.0-dev", path = "../balances" }
sp-storage = { version = "2.0.0-dev", path = "../../primitives/storage" }
Expand All @@ -34,7 +34,6 @@ std = [
"serde",
"codec/std",
"sp-std/std",
"sp-io/std",
"sp-runtime/std",
"frame-support/std",
"frame-system/std",
Expand Down

0 comments on commit 9891eab

Please sign in to comment.