Skip to content
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

Support no_std with a self-referential stream #48

Closed
wants to merge 2 commits into from
Closed

Support no_std with a self-referential stream #48

wants to merge 2 commits into from

Conversation

Kestrer
Copy link
Contributor

@Kestrer Kestrer commented Dec 29, 2020

Instead of using TLS to send values from the future to the stream, we can make use of the fact that it is !Unpin to have the future store a pointer to a cell in the stream.

I had to replace the tests that used #[tokio::test] with futures_executor::block_on so I could test them in Miri - I have filed this issue though so we should be able to switch back to #[tokio::test] at some point.

@Kestrer
Copy link
Contributor Author

Kestrer commented Jan 8, 2021

Nevermind, this is unsound.

@Kestrer Kestrer closed this Jan 8, 2021
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.

1 participant