-
Notifications
You must be signed in to change notification settings - Fork 15
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: unify dependencies to root cargo.toml #5333
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5333 +/- ##
======================================
- Coverage 71% 71% -0%
======================================
Files 494 494
Lines 86142 86009 -133
Branches 86142 86009 -133
======================================
- Hits 61164 60968 -196
- Misses 22245 22302 +57
- Partials 2733 2739 +6 ☔ View full report in Codecov by Sentry. |
Reverted unintended changes to `workflow/*.yml`s Formated `cargo.toml`s * origin/main: fix: don't exit if we can't remove a file that already doesn't exist (#5328)
…PolkadotSdk Updated
Nice work - why did you leave out the substrate dependencies? |
Initially, I thought PolkadotSdk only list third party dependencies in the root, but upon closer inspections, it looks like they have all dependencies listed in the root, including their own sub-crates within the same repository. |
cargo.toml Updated some crates to later versions for compatibility.
…ions) Formatted all the cargo.toml
api/lib/Cargo.toml
Outdated
chainflip-node = { workspace = true } | ||
custom-rpc = { workspace = true } | ||
pallet-cf-account-roles = { workspace = true } | ||
pallet-cf-environment = { workspace = true } |
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.
Strictly speaking, I think these should activate default features when it's in a std context (and to remain consistent with the previous dependency declaration).
The way it's done in the polkadot repo is:
pallet-xx.workspace = true
pallet-xx.default-fetaures = true
I think we should follow the same convention.
This is true in a few places, not just here. For example in the node, the engine, etc. Anywhere were we previously didn't explicitly set default-features = false
we now need to override our workspace default and set default-features = true
.
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.
Right.
I've added default-features = true
for al the non- no-std
crates, as well as dev-dependencies.
Refactored all single quote into double quote in cargo.tomls
* origin/main: feat: broker can encode btc smart contract call (#5329) chore: localnet recreate script can use defaults (#5338) feat: witnessing btc smart contract swaps (#5331) feat: Solana CCM fallback (#5316) fix: scale types for pending ceremonies (#5286) chore: Prune historical values in Validator pallet (#5292) feat: expose deposit transaction hash from ingress-egress-tracker (#5320) # Conflicts: # Cargo.lock # engine/src/witness/btc/smart_contract.rs
* origin/main: feat: Submit a slot number alongside nonce (#5297) chore: use node version from `.nvmrc` 📌 (#5336) chore: add engine account_info logging (#5347) chore: replace manual scale encoding for ts-scale (#5335) chore: more consistent params in Broker API (#5342) # Conflicts: # engine/src/witness/sol.rs # state-chain/pallets/cf-elections/Cargo.toml # state-chain/runtime/Cargo.toml
…waps-close-accounts * origin/main: (44 commits) fix: expire all previous epochs (#5279) feat: add/update contract swaps parameters (#5343) chore: add address to solana logging (#5353) fix: ignore dust underflows in order fills rpc (#5352) chore: consistent naming prewitnessed (#5351) feat: engine-runner verifies gpg signature of old dylib when downloaded (#5339) feat: tainted transaction reporting (#5310) bug: change_utxo not always present (#5340) feat: structured error return types for rpcs (#5346) chore: unify dependencies to root cargo.toml (#5333) feat: Submit a slot number alongside nonce (#5297) chore: use node version from `.nvmrc` 📌 (#5336) chore: add engine account_info logging (#5347) chore: replace manual scale encoding for ts-scale (#5335) chore: more consistent params in Broker API (#5342) feat: broker can encode btc smart contract call (#5329) chore: localnet recreate script can use defaults (#5338) feat: witnessing btc smart contract swaps (#5331) feat: Solana CCM fallback (#5316) fix: scale types for pending ceremonies (#5286) ... # Conflicts: # Cargo.lock # state-chain/chains/src/sol/api.rs # state-chain/pallets/cf-broadcast/src/migrations.rs # state-chain/pallets/cf-environment/Cargo.toml
* WIP: unified some dependencies to the root cargo.toml * Unified the rest of of dependencies into the root cargo.toml * Reverted unintended change. * Updated out dependencies to the (or later than the) versions used by PolkadotSdk Updated * Centralized pokadotSdk dependencies and our own packages into the root cargo.toml Updated some crates to later versions for compatibility. * Ordered everything in the root Cargo.toml alphabetically (within sections) Formatted all the cargo.toml * Added default-features = true for all crates that isn't no-std. Refactored all single quote into double quote in cargo.tomls * Fixed release build * Fixed storage key decoding for Engine. This will fix bouncer/engine startups
* WIP: unified some dependencies to the root cargo.toml * Unified the rest of of dependencies into the root cargo.toml * Reverted unintended change. * Updated out dependencies to the (or later than the) versions used by PolkadotSdk Updated * Centralized pokadotSdk dependencies and our own packages into the root cargo.toml Updated some crates to later versions for compatibility. * Ordered everything in the root Cargo.toml alphabetically (within sections) Formatted all the cargo.toml * Added default-features = true for all crates that isn't no-std. Refactored all single quote into double quote in cargo.tomls * Fixed release build * Fixed storage key decoding for Engine. This will fix bouncer/engine startups
Pull Request
Closes: PRO-1720
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Dependencies are defined in the root cargo.toml. In other cargol.tomls, use
crate = {workspace = true }
Refactored single quotes into double quotes in all cargo.toml.
Updated crates that involve code changes