Skip to content

Expose pin project #258

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

Closed
wants to merge 2 commits into from
Closed

Expose pin project #258

wants to merge 2 commits into from

Conversation

yoshuawuyts
Copy link
Contributor

re-exports pin-project traits from our unstable pin submodule. We should eventually pair this up with some good docs on what pinning is, why pin projection is useful, and how to do it using these attributes.

From internal discussions we've been considering adopting pin-project to remove our use of unsafe from our pin projections. It'd be great if we could write down our experiences porting from unsafe projections to pin-project, and use that to guide others to do the same. Thanks!

Related #203

cc/ @taiki-e

Screenshot

Screenshot_2019-09-28 async_std pin - Rust

Signed-off-by: Yoshua Wuyts <[email protected]>
@yoshuawuyts yoshuawuyts added the enhancement New feature or request label Sep 28, 2019
@yoshuawuyts yoshuawuyts requested a review from a user September 28, 2019 16:36
@taiki-e
Copy link
Contributor

taiki-e commented Sep 28, 2019

I don't think re-exports will work at this time because current pin-project requires that the crate name is exactly ::pin_project.

I know how to make this work well :), but that means blessing async-std, so I don't know if I really want to do it.

@skade
Copy link
Collaborator

skade commented Sep 29, 2019

I would also hold back on this, to avoid accidental blessing.

@yoshuawuyts
Copy link
Contributor Author

Closing because we can't merge this now either way. I'm sympathetic to what's been said in this thread. Thanks!

@yoshuawuyts yoshuawuyts deleted the expose-pin-project branch October 28, 2019 09:38
@yoshuawuyts yoshuawuyts mentioned this pull request Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants