-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove unused deps and add missing feats for all tomls #1223
Conversation
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.
LGTM! Awesome work @wischli! 🙌🏻
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.
Great clean up, love it!!
Just one minor question regarding a change in the lock.
The other comments are just nit picks that can also be cleaned up on the same run.
But see no blockers.
pallets/investments/Cargo.toml
Outdated
authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"] | ||
description = "FRAME pallet template for defining custom runtime logic." | ||
edition = "2018" | ||
homepage = "https://substrate.dev" | ||
license = "Unlicense" | ||
name = "pallet-investments" | ||
readme = "README.md" | ||
repository = "https://github.com/substrate-developer-hub/substrate-node-template/" |
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.
We should tackle this in a follow up and actually insert the right info. My technical debt, sorry.
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.
"pallet-preimage/try-runtime", | ||
"pallet-proxy/try-runtime", | ||
"pallet-randomness-collective-flip/try-runtime", | ||
"pallet-restricted-tokens/try-runtime", | ||
"pallet-scheduler/try-runtime", | ||
"pallet-session/try-runtime", | ||
"pallet-society/try-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 do we even have pallet-staking as a deps?
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.
Good point. I will run cargo-machete
an all crates and remove unused deps!
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.
@@ -22,7 +22,7 @@ column_width = 160 | |||
# Indent based on tables and arrays of tables and their subtables, subtables out of order are not indented. | |||
indent_tables = false | |||
# The substring that is used for indentation, should be tabs or spaces (but technically can be anything). | |||
indent_string = ' ' | |||
indent_string = " " |
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.
🥳
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.
Unfortunately, this does not change anything. There is no taplo
enforcement on the type of apostrophe used 😓
runtime/centrifuge/Cargo.toml
Outdated
"orml-asset-registry/runtime-benchmarks", | ||
"orml-tokens/runtime-benchmarks", | ||
"orml-xtokens/runtime-benchmarks", | ||
"pallet-babe/runtime-benchmarks", |
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.
Babe and grandpa can also be removerd
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.
Cargo.lock
Outdated
@@ -13132,7 +13134,7 @@ version = "1.6.3" | |||
source = "registry+https://github.com/rust-lang/crates.io-index" | |||
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" | |||
dependencies = [ | |||
"cfg-if 1.0.0", | |||
"cfg-if 0.1.10", |
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.
Do you know what caused the downgrade of the version?
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 likely due to the patching for PureStake/frontier
. Should be reverted once I remove the patch.
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.
Resolved after removing the patch as expected.
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.
Thanks for changing Investments cargo already ❤️
Reverting patch looks good. Good to go from my side
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.
Awesome sauce 🌶️
887de3f
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.
Re-approving
Re-approve |
Description
Result of fixing
try-runtime
in #1198 required for migration ofpallet-block-rewards
.cargo-machete
(though this tools creates many false positives, especially for optional deps,codec
andscale-info
)std
,runtime-benchmarks
andtry-runtime
for all cratestry-runtime
todevelopment-runtime
required in feat: impl block rewards #1198try-runtime
which wasn't working sincetry-runtime
was made much stricter sometime between Polkadot v0.9.28 and v0.9.32. Basically, each of our pallets requires at least having"
instead of mixed'
/"
PureStake/Frontier
, thanks @NunoAlexandre !Type of change
How Has This Been Tested?
Checklist:
main
branch