Open calvin2021y opened 2 years ago
👋 Thanks for opening this issue!
Get help or engage by:
/help
: to print help messages./assignme
: to assign this issue to you.Been through this in a different place, since openraft is heavily async it will translate extremely poorly to c-land
wrapper it with struct like https://github.com/datastax/cpp-driver future will be a option.
The problem is that futures in rust and c are very differently implemented you can't just take a rust future and run it in a c asynchronous runtime (or vice versa)
Is is possible to wrapper rust future with C struct and pass into libuv envet loop (or uv_async_t)?
please consider add c api header file support, so it can be used as https://github.com/canonical/raft replacement.