Reexport common dependencies from runtime-common #1582
Labels
dependencies
Pull requests that update a dependency file.
I11-cleaning
No mandatory issue that leave the repo more readable/organized
P2-nice-to-have
Issue is worth doing.
Q1-easy
Can be done by primarily duplicating and adapting code.
Description
Problem
For each pallet/runtime dependency used, we need to add such dependency to:
development-runtime
altair-runtime
centrifuge-runtime
integration-tests
runtime-common
And configure
runtime-benchmarks
andtry-runtime
features in all crates.Avoiding/mixing some feature names will lead to an annoying compile error that could take time to figure out what's going on.
Solution
We can simplify all these dependency boilerplate by adding all pallets to
runtime-common
and allowingruntime-common
to reexport them. So, inruntime-common
we can have:From runtimes, on top of the file:
And the code would remain inmutable for runtimes, but with access to all pallets without modifying
Cargo.toml
files.In the future, this would avoid
nix
hash breaks.The text was updated successfully, but these errors were encountered: