-
Notifications
You must be signed in to change notification settings - Fork 378
runtimes behind features #2752
base: master
Are you sure you want to change the base?
runtimes behind features #2752
Conversation
Should |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very needed PR! I would love to see it merged.
glutton-runtime = [ "dep:glutton-runtime", "shell-runtime" ] | ||
penpal-runtime = [ "dep:penpal-runtime", "rococo-parachain-runtime" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shell-runtime
and rococo-parachain-runtime
are included here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They use bits of the other. Maybe they should not...
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
Ah I am thinking though that maybe for brevity we should just have: |
The CI pipeline was cancelled due to failure one of the required jobs. |
This past year we have added many runtimes. The disk space and compile times of cumulus has increased significantly. This PR puts each runtime behind a feature which will give us the headroom to allow us to continue to add further runtimes. (For bridges I've put them under one
bridge-hub-runtimes
feature).A from scratch release build of just selecting
asset-hub-kusama-runtime
andasset-hub-polkadot-runtime
for example takes less than half the time on my desktop. I suspect the time savings are even more on a laptop.For now all runtimes are still built by default.
(asset_hub.rs has just been split up into three files - one per runtime.)
(A follow up PR will use these same runtime features in the integration tests so that one can run the tests of one runtime without having to build them all.)
TODO: Tidy up unused imports when only a subset of runtimes are built.