-
Notifications
You must be signed in to change notification settings - Fork 755
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
Replace pin-project by pin-project-lite #1185
Conversation
CI failure seems unrelated. |
I've added a commit to appease clippy, let me know if you'd rather keep that out of this PR. |
Now there's a bunch more clippy warnings that I'm not as comfortable addressing. |
This looks good to me, would be nice to have. |
I'm a bit on the fence about whether or not to merge this in light of the discussion on #1185, e.g. #1178 (comment) @taiki-e, as the maintainer of both Another advantage of I could be convinced either way, though. |
If you are already using pin-project-lite in the same workspace, there is basically no reason to oppose this patch.
As for pin-project-lite, 0.3 release may be needed soon. (Using pin-project-lite in core crate requires breaking changes.) |
Bump! Hyper has now been on pin-project-lite for a while after the initial regression was fixed (hyperium/hyper#2566). Otherwise nothing has changed AFAIK. |
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.
Sorry for the delay—if Hyper switched over, might as well switch over here.
I'll merge once CI passes. |
* futures: Replace pin-project by pin-project-lite * tower: Replace pin-project by pin-project-lite Co-authored-by: Eliza Weisman <eliza@buoyant.io> Co-authored-by: David Barsky <me@davidbarsky.com>
* futures: Replace pin-project by pin-project-lite * tower: Replace pin-project by pin-project-lite Co-authored-by: Eliza Weisman <eliza@buoyant.io> Co-authored-by: David Barsky <me@davidbarsky.com>
Motivation
pin-project-lite, in contrast to pin-project, does not depend on syn and quote and as such is much lighter on compile times. futures-rs switched recently, see that PR for compile time differences.
Solution
Replace pin-project by pin-project-lite.
Resolves #1178.