-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: Experiment: Safe FFI for Rust ↔ C++ #7
base: main
Are you sure you want to change the base?
Conversation
@dtolnay I was thinking of doing a write-up on I've started wrapping the |
875da29
to
482bc56
Compare
FFI with C++ is very different from FFI with C so I would flag that C FFI use cases shouldn't be expected to translate well, as you noticed. The real world use cases I have been experimenting with are Proxygen's server API and Thrift's client API. https://michael-f-bryan.github.io/rust-ffi-guide/basic_request.html + https://michael-f-bryan.github.io/rust-ffi-guide/send_basic.html looks pretty close as a simplified form of the same thing. |
Note to self: I think I'll give up on writing bindings for I spent a good 2 evenings trying to get it to build reliably using I was hoping I'd be able to use this to show off how annoying getting a native library to compile and link can be, and the tricks you can use while troubleshooting, but that doesn't really work when there's no happy ending... So I'm going to throw this into the too hard basket. |
5e06533
to
82fbf86
Compare
See also: