-
Notifications
You must be signed in to change notification settings - Fork 25
[PM-29535] Update cargo-sort #602
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
base: main
Are you sure you want to change the base?
Conversation
|
Fixed Issues (1)Great job! The following issues were fixed in this Pull Request
|
🔍 SDK Breaking Change Detection ResultsSDK Version:
Breaking change detection completed. View SDK workflow |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #602 +/- ##
=======================================
Coverage 78.59% 78.59%
=======================================
Files 281 281
Lines 29131 29131
=======================================
Hits 22895 22895
Misses 6236 6236 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @dani-garcia's task —— View job Code Review for PR #602 ✅Todo List
Overall Assessment: APPROVE 👍This PR updates cargo-sort from a git-pinned version to the official 2.0.2 release. All changes are purely formatting and ordering related - no functional changes to any dependencies, features, or code logic. Key Findings✅ Positive Observations
📝 Formatting Changes AppliedThe new cargo-sort 2.0.2 applies these formatting preferences consistently across all Cargo.toml files:
🔍 Verification of Critical ChangesWorkflow file (
Root Cargo.toml:
All crate Cargo.toml files:
SummaryThis is a clean PR that:
No issues found. The PR is ready to merge. |
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.
Pull request overview
This PR upgrades the cargo-sort tool from a git revision to the official version 2.0.2 and adds the --grouped parameter to all cargo-sort invocations. The changes result in automated reformatting of Cargo.toml files throughout the repository with improved section ordering and consistent formatting.
Key changes:
- Updated cargo-sort installation to use version 2.0.2 instead of a specific git revision
- Added
--groupedparameter to all cargo-sort commands for better section grouping - Reformatted all Cargo.toml files with consistent alphabetical ordering, trailing commas, and standardized section order
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/lint.yml |
Updated CI workflow to install cargo-sort v2.0.2 and use --grouped flag |
lint-staged.config.js |
Added --grouped parameter to pre-commit cargo sort command |
README.md |
Updated documentation to include --grouped flag in lint check example |
Cargo.toml |
Reordered workspace dependencies alphabetically and reorganized profile sections |
crates/bitwarden-wasm-internal/Cargo.toml |
Moved [features] section after [lib] section |
crates/bitwarden-vault/Cargo.toml |
Added trailing commas to feature dependency lists |
crates/bitwarden-uuid/Cargo.toml |
Moved [lints] section to end of file |
crates/bitwarden-uuid-macro/Cargo.toml |
Moved [lib] section before [dependencies] |
crates/bitwarden-uniffi/Cargo.toml |
Moved [features] after [lib] and reordered target-specific dependencies |
crates/bitwarden-threading/Cargo.toml |
Added trailing comma to wasm feature list |
crates/bitwarden-state/Cargo.toml |
Reordered target-specific dependency sections |
crates/bitwarden-ssh/Cargo.toml |
Added trailing comma to wasm feature dependencies |
crates/bitwarden-send/Cargo.toml |
Added trailing comma to uniffi feature list |
crates/bitwarden-pm/Cargo.toml |
Added trailing commas to all feature dependency lists |
crates/bitwarden-ipc/Cargo.toml |
Added trailing comma to wasm feature list |
crates/bitwarden-generators/Cargo.toml |
Added trailing comma to wasm feature dependencies |
crates/bitwarden-exporters/Cargo.toml |
Added trailing comma to wasm feature list |
crates/bitwarden-error/Cargo.toml |
Moved [lints] section to end of file |
crates/bitwarden-error-macro/Cargo.toml |
Moved [lib] before [features] and [lints] to end |
crates/bitwarden-crypto/Cargo.toml |
Added trailing comma to uniffi feature dependencies |
crates/bitwarden-core/Cargo.toml |
Added trailing commas to all feature dependency lists |
crates/bitwarden-collections/Cargo.toml |
Added trailing comma to uniffi feature list |
crates/bitwarden-auth/Cargo.toml |
Added trailing comma to wasm feature dependencies |
bitwarden_license/bitwarden-commercial-vault/Cargo.toml |
Added trailing comma to wasm feature list |
quexten
left a comment
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.
Approving for KM


🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-29535
📔 Objective
Upgrades the version of cargo-sort used to the latest. This changes slightly the ordering and formatting of some of the Cargo.toml files, but they should be functionally identical. The change should help reduce the ammount of accidental changes made by devs when they install a too new version of cargo-sort.
If you're running cargo-sort locally, make sure it's updated and that you're running the correct command (Now it needs a
--groupedparameter). I'll post this on the SDK channel as well once the change is merged:🚨 Breaking Changes
⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes