Skip to content
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

add c api support #506

Open
calvin2021y opened this issue Aug 8, 2022 · 5 comments
Open

add c api support #506

calvin2021y opened this issue Aug 8, 2022 · 5 comments

Comments

@calvin2021y
Copy link

please consider add c api header file support, so it can be used as https://github.com/canonical/raft replacement.

@github-actions
Copy link

github-actions bot commented Aug 8, 2022

👋 Thanks for opening this issue!

Get help or engage by:

  • /help : to print help messages.
  • /assignme : to assign this issue to you.

@Licenser
Copy link
Contributor

Been through this in a different place, since openraft is heavily async it will translate extremely poorly to c-land

@calvin2021y
Copy link
Author

wrapper it with struct like https://github.com/datastax/cpp-driver future will be a option.

@Licenser
Copy link
Contributor

Licenser commented Aug 10, 2022

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)

@calvin2021y
Copy link
Author

Is is possible to wrapper rust future with C struct and pass into libuv envet loop (or uv_async_t)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants