Skip to content
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

Limit cargo sort to only modify incorrect files. #3595

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

@nick-mobilecoin nick-mobilecoin commented Oct 2, 2023

By default cargo sort will always re-write every Cargo.toml file
it processes. This causes the build system to see the files changed and
results in re-compiling unnecessarily. Now cargo sort will only update
a file if it deviates from the desired sorting order.

On my machine this took a no-op lint from 45 seconds down to 25 seconds

By default `cargo sort` will *always* re-write every `Cargo.toml` file
it processes. This causes the build system to see the files changed and
results in re-compiling unnecessarily. Now `cargo sort` will only update
a file if it deviates from the desired sorting order.
@nick-mobilecoin
Copy link
Collaborator Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@nick-mobilecoin nick-mobilecoin merged commit 5b39e4a into master Oct 2, 2023
20 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/better-incremental-clippy branch October 2, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants