Introducing `cxx-async`
August 19, 2022
I'm happy to announce a new Rust crate that I've been working on for a while at Meta: cxx-async
. cxx-async
is an extension to the cxx
crate that allows for bidirectional interoperability between C++ coroutines and asynchronous Rust functions. With it, you can await
C++ coroutines and co_await
Rust functions; as much as possible, everything "just works". The biggest practical benefit of C++ coroutine interoperability is elimination of awkward callback patterns when interfacing with C++.