-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: clean up dependencies #13728
chore: clean up dependencies #13728
Conversation
If there are unused packages the clippy will fail |
@@ -34,5 +34,5 @@ runs: | |||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |||
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV | |||
echo "RUSTFLAGS=-C debuginfo=line-tables-only -C incremental=false" >> $GITHUB_ENV | |||
echo "RUSTFLAGS=-C debuginfo=line-tables-only -C incremental=false -Wunused-crate-dependencies" >> $GITHUB_ENV |
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.
if this is global lint, it could be defined in cargo.toml in the lint section.
However, this is awesome for production code, but may be hard to do for tests/benchmark code.
At least in arrow-rs, i tried to enable this globally but failed.
see apache/arrow-rs#6804 (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.
going through the same. I'm keen to disable the lint for benches lets see where it can bring me
@findepi PTAL |
serde_json = { workspace = true } | ||
test-utils = { path = "../../test-utils" } | ||
tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot", "fs"] } | ||
tokio-postgres = "0.7.7" |
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.
beautiful
So this ended up with no CI changes for now, right? It's a good change nonetheless. Just PR title may want a change. |
Which issue does this PR close?
Related to #13726
Closes #.
Rationale for this change
Clean up dependencies
Going forward Im planning to add crate level hint
#![warn(unused_extern_crates)]
to specific crates, cannot do that globally as we got a lot of false positives on crates having test/bench sub crates.What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?