Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Remove unused crates#26519

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
carols10cents wants to merge2 commits intoinfluxdata:main
base:main
Choose a base branch
Loading
frominteger32llc:cn/remove-unused-crates

Conversation

@carols10cents
Copy link
Contributor

And move crates from regular to dev-dependencies when they're only used in tests.

Found by the unused crate lint and removed to help prevent unnecessary dependency hell when upgrading hyper to 1.0, but committed separately from enabling the lint permanently.

This lint has a number of "false positives" that are due to being unable to specify per-target dependencies; see these issues for more info:

I'm most interested in the first commit here that cleans up existing unused crates.

I won't be offended if you don't want the second commit that will make you have to clean up or explicitly allow actual unused crates or false positives going forward. I'm happy to rebase out the 2nd commit, just say the word!

  • I've read the contributing section of the projectREADME.
  • SignedCLA (if not already signed).

And move crates from regular to dev-dependencies when they're only usedin tests.Found by the unused crate lint and removed to help prevent unnecessarydependency hell when upgrading hyper to 1.0, but committed separatelyfrom enabling the lint permanently.
But allow/expect/explicitly `use as _` for false positives of the lintbecause it isn't possible to currently specify that a dependency is onlyused in unit tests but not integration tests, or only used in abenchmark but not unit tests, or only used in the bin but not the lib.See these issues:- <rust-lang/rust#57274>- <rust-lang/rust#95513>
@hiltontjhiltontj added the v3 labelJul 2, 2025
Copy link
Contributor

@hiltontjhiltontj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is a welcome change IMHO - though it has been some time since the PR was opened so a rebase/merge is needed.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hiltontjhiltontjhiltontj approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@carols10cents@hiltontj

[8]ページ先頭

©2009-2025 Movatter.jp