cxx-async icon indicating copy to clipboard operation
cxx-async copied to clipboard

Simple interoperability between C++ coroutines and asynchronous Rust

Results 10 cxx-async issues
Sort by recently updated
recently updated
newest added

I have the following defined: ```rust mod ffi { unsafe extern "C++" { include!("cxx_rs_future_defs.h"); type RustFutureVoid = super::RustFutureVoid; } extern "Rust" { fn foo() -> RustFutureVoid; } } unsafe impl...

If a Rust future is co_awaited from C++ and that future decides to wake the current task, then a deadlock will occur. Found while trying to use `futures::FuturesUnordered` which wakes...

test with gcc 12

Thank you for taking the time to create this crate and for your other work on async programming, Rust, and C++. Unfortunately, I could not get any of this to...

CXXFLAGS = None cargo:warning=In file included from ./include/download3_async.h:4, cargo:warning= from /home/gamer/Git/cxxrustlol/build/Desktop-Debug/./cargo/build/x86_64-unknown-linux-gnu/debug/build/download3-b99ab6a1c819e27e/out/cxxbridge/sources/download3/src/lib.rs.cc:1: cargo:warning=./include/rust/cxx_async.h:18:10: fatal error: experimental/coroutine: No such file or directory cargo:warning= 18 | #include cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~

Hi, I am starting a new project and testing this crate and `cargo add cxx-async` ,then build error just raise using latest version of rust tool chain. ![Image](https://github.com/user-attachments/assets/d5e3f385-a5b0-4feb-91dd-78aa222b26d3)

cxx-async has some really old deps, it's better to cleanup them: ## cxx-async-macro - [ ] syn `1` => `2` (And do we really need `full`?) - [ ] pin-utils...

help wanted
good first issue

@devillove084 spent a lot of time getting `folly` to work in CI. Would you like to add this to the documentation so our users can use `folly` on their own?

Split out of https://github.com/pcwalton/cxx-async/issues/7