polkadot-service: Make native runtime configurable (#3189)
* polkadot-service: Make native runtime configurable This pull requests adds support for configuring the native runtimes used by polkadot-service. While this whole pr doesn't change that much for polkadot, besides not having the light-node enabled for the default polkadot binary. However, downstream projects (parachains) will have a much better compile time. In cumulus for example the `cargo test --all --release` is about 4m faster to compile. * Fixes * Fix * Enable rococo-native * Fix light client *🤦 * Fixes
This diff is collapsed.
... | @@ -12,11 +12,8 @@ edition = "2018" | ... | @@ -12,11 +12,8 @@ edition = "2018" |
readme = "README.md" | readme = "README.md" | ||
[dependencies] | [dependencies] | ||
cli = { package = "polkadot-cli", path = "cli" } | polkadot-cli = { path = "cli", features = [ "kusama-native", "westend-native", "rococo-native" ] } | ||
color-eyre = "0.5.10" | color-eyre = "0.5.10" | ||
thiserror = "1.0.23" | |||
futures = "0.3.12" | |||
service = { package = "polkadot-service", path = "node/service" } | |||
parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] } | parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] } | ||
[dev-dependencies] | [dev-dependencies] | ||
... | @@ -43,6 +40,7 @@ members = [ | ... | @@ -43,6 +40,7 @@ members = [ |
"xcm/xcm-builder", | "xcm/xcm-builder", | ||
"xcm/xcm-executor", | "xcm/xcm-executor", | ||
"xcm/pallet-xcm", | "xcm/pallet-xcm", | ||
"node/client", | |||
"node/collation-generation", | "node/collation-generation", | ||
"node/core/approval-voting", | "node/core/approval-voting", | ||
"node/core/av-store", | "node/core/av-store", | ||
... | @@ -96,8 +94,8 @@ opt-level = 3 | ... | @@ -96,8 +94,8 @@ opt-level = 3 |
panic = "unwind" | panic = "unwind" | ||
[features] | [features] | ||
runtime-benchmarks=["cli/runtime-benchmarks"] | runtime-benchmarks= [ "polkadot-cli/runtime-benchmarks" ] | ||
try-runtime = ["cli/try-runtime"] | try-runtime = [ "polkadot-cli/try-runtime" ] | ||
# Configuration for building a .deb package - for use with `cargo-deb` | # Configuration for building a .deb package - for use with `cargo-deb` | ||
[package.metadata.deb] | [package.metadata.deb] | ||
... | ... |
node/client/Cargo.toml
0 → 100644