[cumulus] Feature gates for rococo/westend related stuff in the parachains-common (#3041)

This PR avoids automatically pulling rococo/westend runtime constants
into the runtime by default. Usually, we have testnet runtimes dedicated
to rococo or westend, and therefore, we don't need both dependencies.
Additionally, it prevents pulling rococo/westend-related items into the
`polkadot-fellows` repo, as seen in the Cargo.lock
[here](https://github.com/polkadot-fellows/runtimes/blob/main/Cargo.lock#L14137-L14151)
and
[here](https://github.com/polkadot-fellows/runtimes/blob/main/Cargo.lock#L9756-L9770).

---------

Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
Branislav KonturandAdrian Catangiu authored and GitHub committed 2024-01-24 13:19:01 +00:00
1 parent 4374b5d598
commit a78ff7d770
15 files changed
+25 -17

No files matched your search

+2
View File
@@ -17,7 +17,9 @@
pub mod impls;
pub mod message_queue;
#[cfg(feature = "rococo")]
pub mod rococo;
#[cfg(feature = "westend")]
pub mod westend;
pub mod xcm_config;
pub use constants::*;