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

Remove unused dependencies from sqlx-core, sqlx-cli and sqlx-postgres #3519

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

vsuryamurthy
Copy link
Contributor

There are quite some unused dependencies in sqlx-core and sqlx-cli. And one crate from sqlx-postgres.
Cargo builds with all features after removing these dependencies.

@abonander
Copy link
Collaborator

Yeah, a lot of these were left over from moving the database drivers out into their own crates.

It would be really nice if Cargo or rustc linted about unused external crates.

@abonander abonander merged commit 293c55c into launchbadge:main Sep 25, 2024
79 checks passed
@vsuryamurthy vsuryamurthy deleted the remove_unused_dependencies branch September 25, 2024 06:01
@vsuryamurthy
Copy link
Contributor Author

vsuryamurthy commented Sep 25, 2024

Yeah, a lot of these were left over from moving the database drivers out into their own crates.

It would be really nice if Cargo or rustc linted about unused external crates.

There is this tool: https://github.com/bnjbvr/cargo-machete that can integrated to the github workflow. We have it setup for our internal packages and it does do a pretty decent job I have to say and quite simple in logic!

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