Skip to content

Commit

Permalink
substrate-node: removed excessive polkadot-sdk features (#5925)
Browse files Browse the repository at this point in the history
Some of the features enabled for `polkadot-sdk` umbrella crate were not
necessary for substrate node (e.g. all `cumulus-*` or `polkadot-*`
features) resulting in much longer compilation time. This PR fixes that.
  • Loading branch information
michalkucharczyk authored Oct 11, 2024
1 parent e5ccc00 commit b45f89c
Showing 1 changed file with 85 additions and 1 deletion.
86 changes: 85 additions & 1 deletion substrate/bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,91 @@ rand = { workspace = true, default-features = true }
serde_json = { workspace = true, default-features = true }

# The Polkadot-SDK:
polkadot-sdk = { features = ["node"], workspace = true, default-features = true }
polkadot-sdk = { features = [
"fork-tree",
"frame-benchmarking-cli",
"frame-remote-externalities",
"frame-support-procedural-tools",
"generate-bags",
"mmr-gadget",
"mmr-rpc",
"pallet-contracts-mock-network",
"pallet-revive-mock-network",
"pallet-transaction-payment-rpc",
"sc-allocator",
"sc-authority-discovery",
"sc-basic-authorship",
"sc-block-builder",
"sc-chain-spec",
"sc-cli",
"sc-client-api",
"sc-client-db",
"sc-consensus",
"sc-consensus-aura",
"sc-consensus-babe",
"sc-consensus-babe-rpc",
"sc-consensus-beefy",
"sc-consensus-beefy-rpc",
"sc-consensus-epochs",
"sc-consensus-grandpa",
"sc-consensus-grandpa-rpc",
"sc-consensus-manual-seal",
"sc-consensus-pow",
"sc-consensus-slots",
"sc-executor",
"sc-executor-common",
"sc-executor-polkavm",
"sc-executor-wasmtime",
"sc-informant",
"sc-keystore",
"sc-mixnet",
"sc-network",
"sc-network-common",
"sc-network-gossip",
"sc-network-light",
"sc-network-statement",
"sc-network-sync",
"sc-network-transactions",
"sc-network-types",
"sc-offchain",
"sc-proposer-metrics",
"sc-rpc",
"sc-rpc-api",
"sc-rpc-server",
"sc-rpc-spec-v2",
"sc-service",
"sc-state-db",
"sc-statement-store",
"sc-storage-monitor",
"sc-sync-state-rpc",
"sc-sysinfo",
"sc-telemetry",
"sc-tracing",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sc-utils",
"sp-blockchain",
"sp-consensus",
"sp-core-hashing",
"sp-core-hashing-proc-macro",
"sp-database",
"sp-maybe-compressed-blob",
"sp-panic-handler",
"sp-rpc",
"staging-chain-spec-builder",
"staging-node-inspect",
"staging-tracking-allocator",
"std",
"subkey",
"substrate-build-script-utils",
"substrate-frame-rpc-support",
"substrate-frame-rpc-system",
"substrate-prometheus-endpoint",
"substrate-rpc-client",
"substrate-state-trie-migration-rpc",
"substrate-wasm-builder",
"tracing-gum",
], workspace = true, default-features = true }

# Shared code between the staging node and kitchensink runtime:
kitchensink-runtime = { workspace = true }
Expand Down

0 comments on commit b45f89c

Please sign in to comment.