Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m aware that the issues are tough to work through but it’s a real shame that async traits remain in nightly. On top of this, being able to reference a set of reasonable traits from a popular library not linked to a runtime would make library writing less (runtime) siloed. For example, a library author would not have to expose their own async Read and Write traits allowing consumers of that library to use runtimes that consume those traits. The user would not then have to do the plumbing themselves.


async traits are in the process of being stabilized: https://github.com/rust-lang/rust/pull/115822

Also, impl trait projections (ability to use Self::Foo associated types in async functions in traits): https://github.com/rust-lang/rust/pull/115659




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: