Skip to content

Remove unused dev-dependency on pnet_datalink #3093

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

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

bossmc
Copy link
Contributor

@bossmc bossmc commented Dec 22, 2022

This is no longer needed since #2929 landed (and then #2949 really burned the forest) - this change saves 4 crates from the build.

The other (non-dev) crates reported by cargo udeps are harder to eliminate:

  • httpdate used by server AND (http1 OR http2)
  • want used by client AND (http1 OR http2)
  • tracing used by http1 OR http2

Requirements of the form A AND (B OR C) are unrepresentable perfectly in Cargo.toml even with the new features syntax but we might be able to do something sensible here. If it's a reasonable assumption that (http1 OR http2) is logically always true (since hyper is pretty nerfed without at least one of these) then we could make server depend on httpdate and client on want (and tracing drops out automatically). Making these changes saves 2 crates for non-client builds and 1 from non-server builds.

@seanmonstar seanmonstar merged commit 9dcbf04 into hyperium:master Dec 22, 2022
@bossmc bossmc deleted the remove-unneeded-crates branch December 22, 2022 23:52
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