r4cppp icon indicating copy to clipboard operation
r4cppp copied to clipboard

Calling rust code from C++ and vice versa

Open liamsi opened this issue 10 years ago • 2 comments

For a C++ programmer it is very interesting to see how easy rust and C (and C++) integrate. Most of the time one will start with existing C/C++ code and does not have the luxury to start with empty code base. Several tutorials in this direction exist already. Still, it would be very nice to see a simple example and probably link to more details (https://doc.rust-lang.org/book/ffi.html ?)

liamsi avatar May 23 '15 11:05 liamsi

This! I want to see it as well. The neon project seems interesting.

diorahman avatar Sep 11 '16 06:09 diorahman

Me too. :) I only learned that Rust exists a few days ago, and I'm definitely interested in giving it a try - but unless I can integrate Rust libraries into larger C++ applications I'm not sure that it would be at all interesting to me.

Yes, I know Rust can expose a C API... but without digging in myself it's not clear how much would help with, for example, object hierarchies of any real size.

kadst43 avatar Jul 25 '17 16:07 kadst43