-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Remove TLS dependency from async/await #62918
Comments
I would like to tackle this since it's blocking a personal project. |
Duplicate of rustasync/team#42 |
There's also some additional background discussion on the rust-internals discourse. |
Not sure if you were suggesting this, but I don't think we should be using other repo's issues to track changes to rustc. |
I mean, nor do I but that is where most of the existing discussion is. It may be worth closing the other thread to try and avoid splitting the discussion over two issues on separate repos. |
I'm running into this as well. You can work around it and get things working using a hack akin to this https://github.com/SunriseOS/core-futures-tls but it requires overriding libcore for every crate that needs (I'm sure this workaround is well-known but just posting for future readers that might come across this issue) |
Are you still working on this? I don't have much experience with the Rust compiler, but maybe there is still a way I can help? |
Not actively working on it, but i'm interested in giving it a go again, it's a gnarly one. Just moved cross-country and only now just returning to a somewhat stable life pattern.
That being said, if you want to do it and have the time, give it a go please!!
…On September 15, 2019 6:30:39 AM EDT, Philipp Oppermann ***@***.***> wrote:
@cavedweller
> I would like to tackle this since it's blocking a personal project.
Are you still working on this? I don't have much experience with the
Rust compiler, but maybe there is still a way I can help?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#62918 (comment)
|
@cavedweller I took a detailed look at your work-in-progress implementation at benbrittain@11c9422 today. I think the next step would be to adjust the MIR transformation in |
This is essentially a duplicate of #56974, so closing in favor of that. |
Futures currently have a dependency on TLS for storing a pointer to
Context<'_>
.https://github.com/rust-lang/rust/blob/master/src/libstd/future.rs#L116
This makes usage in
no_std
environments quite difficult.The text was updated successfully, but these errors were encountered: