3 ms·
> rust is not well-suited for interfacing with FFI That's a surprising comment, given the massive deployments of hybrid Rust/C++ apps at huge scale that exist!
by pcwalton 4y ago
> rust is not well-suited for interfacing with FFI
That's a surprising comment, given the massive deployments of hybrid Rust/C++ apps at huge scale that exist!
Does Zig have any equivalent to cxx for interfacing with C++ code?
- cztomsik 4y agoyou are right about cxx, I made this comment with C FFI in mind. and for that, Zig couldn't have better integration. AFAIK there is no simple way to interface with C++ from Zig, you either have C headers or you write a bit of C++ to export what you need and then you're back in the game. Or you flip it on its head and use zig as C++ compiler and call your zig-parts from C++ but I have no experience with this, I think bun does this.