Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-bu
[features]
default = ["std"]
std = [
"frame-try-runtime/std",
"frame-system-benchmarking/std",
"frame-benchmarking/std",
"codec/std",
"scale-info/std",
"frame-executive/std",
Expand Down
9 changes: 9 additions & 0 deletions bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-bu
default = ["std"]
with-tracing = ["frame-executive/with-tracing"]
std = [
"sp-sandbox/std",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just remove the unused depedency, then we don't need to add it here :P

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There also is cargo udeps which claims to find unused crates.
I will give it a try later.

"pallet-whitelist/std",
"pallet-session-benchmarking/std",
"pallet-offences-benchmarking/std",
"pallet-nomination-pools-benchmarking/std",
"pallet-election-provider-support-benchmarking/std",
Comment thread
ggwpez marked this conversation as resolved.
Outdated
"pallet-asset-tx-payment/std",
"frame-system-benchmarking/std",
"frame-election-provider-support/std",
"sp-authority-discovery/std",
"pallet-assets/std",
"pallet-authority-discovery/std",
Expand Down
4 changes: 4 additions & 0 deletions frame/alliance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ pallet-collective = { version = "4.0.0-dev", path = "../collective" }
[features]
default = ["std"]
std = [
"sha2/std",
"pallet-collective/std",
"hex/std",
"frame-benchmarking/std",
"log/std",
"codec/std",
"scale-info/std",
Expand Down
6 changes: 6 additions & 0 deletions frame/bags-list/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" }
[features]
default = ["std"]
std = [
"sp-tracing/std",
"sp-io/std",
"sp-core/std",
"scale-info/std",
"pallet-balances/std",
"frame-benchmarking/std",
"codec/std",
"sp-runtime/std",
"sp-std/std",
Expand Down
2 changes: 2 additions & 0 deletions frame/beefy-mmr/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ debug = ["hex", "hex/std", "log"]
default = ["debug", "keccak", "std"]
keccak = ["tiny-keccak"]
std = [
"log/std",
"hex/std",
"beefy-primitives/std",
"sp-api/std"
]
1 change: 1 addition & 0 deletions frame/bounties/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/child-bounties/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/election-provider-multi-phase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" }
[features]
default = ["std"]
std = [
"pallet-election-provider-support-benchmarking/std",
"codec/std",
"scale-info/std",
"log/std",
Expand Down
1 change: 1 addition & 0 deletions frame/elections-phragmen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/im-online/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pallet-session = { version = "4.0.0-dev", path = "../session" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/indices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/lottery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sp-io = { version = "6.0.0", path = "../../primitives/io" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sp-core = { version = "6.0.0", path = "../../primitives/core" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
2 changes: 2 additions & 0 deletions frame/nomination-pools/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ sp-io = { version = "6.0.0", path = "../../../primitives/io" }
[features]
default = ["std"]
std = [
"scale-info/std",
"codec/std",
"frame-benchmarking/std",
"frame-election-provider-support/std",
"frame-support/std",
Expand Down
1 change: 1 addition & 0 deletions frame/proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sp-core = { version = "6.0.0", path = "../../primitives/core" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/remark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ sp-core = { version = "6.0.0", default-features = false, path = "../../primitive
default = ["std"]
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
2 changes: 2 additions & 0 deletions frame/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ rand_chacha = { version = "0.2" }
[features]
default = ["std"]
std = [
"rand_chacha/std",
"frame-benchmarking/std",
"serde",
"codec/std",
"scale-info/std",
Expand Down
2 changes: 2 additions & 0 deletions frame/support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ parity-util-mem = { version = "0.11.0", default-features = false, features = ["p
[features]
default = ["std"]
std = [
"sp-core/std",
"k256/std",
"once_cell",
"serde",
"sp-io/std",
Expand Down
1 change: 1 addition & 0 deletions frame/support/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ test-pallet = { package = "frame-support-test-pallet", default-features = false,
[features]
default = ["std"]
std = [
"test-pallet/std",
"serde/std",
"codec/std",
"scale-info/std",
Expand Down
1 change: 1 addition & 0 deletions frame/timestamp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sp-io = { version = "6.0.0", path = "../../primitives/io" }
[features]
default = ["std"]
std = [
"sp-io/std",
"codec/std",
"frame-benchmarking/std",
"frame-support/std",
Expand Down
1 change: 1 addition & 0 deletions frame/tips/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sp-storage = { version = "6.0.0", path = "../../primitives/storage" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/transaction-payment/asset-tx-payment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pallet-balances = { version = "4.0.0-dev", path = "../../balances" }
[features]
default = ["std"]
std = [
"scale-info/std",
"serde",
"codec/std",
"sp-std/std",
Expand Down
2 changes: 2 additions & 0 deletions frame/transaction-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sp-transaction-storage-proof = { version = "4.0.0-dev", default-features = true,
default = ["std"]
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks", "hex-literal"]
std = [
"log/std",
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/treasury/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sp-io = { version = "6.0.0", path = "../../primitives/io" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/utility/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ sp-core = { version = "6.0.0", path = "../../primitives/core" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/vesting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sp-io = { version = "6.0.0", default-features = false, path = "../../primitives/
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/whitelist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ sp-io = { version = "6.0.0", path = "../../primitives/io" }
[features]
default = ["std"]
std = [
"frame-benchmarking/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
2 changes: 2 additions & 0 deletions primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ bench = false
[features]
default = ["std"]
std = [
"parity-util-mem/std",
"merlin/std",
"full_crypto",
"log/std",
"thiserror",
Expand Down
1 change: 1 addition & 0 deletions primitives/core/hashing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../../std" }
[features]
default = ["std"]
std = [
"digest/std",
"blake2/std",
"byteorder/std",
"sha2/std",
Expand Down
1 change: 1 addition & 0 deletions primitives/io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ tracing-core = { version = "0.1.28", default-features = false}
[features]
default = ["std"]
std = [
"bytes/std",
"sp-externalities/std",
"sp-core/std",
"sp-keystore",
Expand Down
2 changes: 2 additions & 0 deletions primitives/runtime-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ trybuild = "1.0.60"
[features]
default = [ "std" ]
std = [
"sp-storage/std",
"bytes/std",
"sp-wasm-interface/std",
"sp-std/std",
"sp-tracing/std",
Expand Down
1 change: 1 addition & 0 deletions test-utils/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ default = [
"std",
]
std = [
"parity-util-mem/std",
"beefy-primitives/std",
"beefy-merkle-tree/std",
"sp-application-crypto/std",
Expand Down