From 7449579aaa49f8e9eb936cc5f03a2d6175bdd3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Thu, 8 Sep 2022 09:32:43 +0100 Subject: [PATCH] Service: Use weak dependency features (#5966) * Service: Use weak dependency features * Set rust version --- node/service/Cargo.toml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index ee35e7446e40..8863c63a5a29 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -3,6 +3,7 @@ name = "polkadot-service" version = "0.9.28" authors = ["Parity Technologies "] edition = "2021" +rust-version = "1.60" [dependencies] # Substrate Client @@ -174,31 +175,31 @@ westend-native = [ "westend-runtime", "westend-runtime-constants", "polkadot-cli rococo-native = [ "rococo-runtime", "rococo-runtime-constants", "polkadot-client/rococo" ] runtime-benchmarks = [ - "polkadot-runtime/runtime-benchmarks", - "kusama-runtime/runtime-benchmarks", - "westend-runtime/runtime-benchmarks", - "rococo-runtime/runtime-benchmarks" + "polkadot-runtime?/runtime-benchmarks", + "kusama-runtime?/runtime-benchmarks", + "westend-runtime?/runtime-benchmarks", + "rococo-runtime?/runtime-benchmarks" ] try-runtime = [ - "polkadot-runtime/try-runtime", - "kusama-runtime/try-runtime", - "westend-runtime/try-runtime", - "rococo-runtime/try-runtime", + "polkadot-runtime?/try-runtime", + "kusama-runtime?/try-runtime", + "westend-runtime?/try-runtime", + "rococo-runtime?/try-runtime", ] fast-runtime = [ - "polkadot-runtime/fast-runtime", - "kusama-runtime/fast-runtime", - "westend-runtime/fast-runtime", - "rococo-runtime/fast-runtime", + "polkadot-runtime?/fast-runtime", + "kusama-runtime?/fast-runtime", + "westend-runtime?/fast-runtime", + "rococo-runtime?/fast-runtime", ] malus = ["full-node"] runtime-metrics = [ "polkadot-client/runtime-metrics", - "rococo-runtime/runtime-metrics", - "westend-runtime/runtime-metrics", - "kusama-runtime/runtime-metrics", - "polkadot-runtime/runtime-metrics", + "rococo-runtime?/runtime-metrics", + "westend-runtime?/runtime-metrics", + "kusama-runtime?/runtime-metrics", + "polkadot-runtime?/runtime-metrics", "polkadot-runtime-parachains/runtime-metrics" ]