2 ms·
It's the same way you call into C from C++. When Rust has a no_mangle extern C function to the universe it's just a C function. Your C++ header just needs to ma
by Manishearth 11y ago
It's the same way you call into C from C++. When Rust has a no_mangle extern C function to the universe it's just a C function. Your C++ header just needs to mark the fn as extern C and you're done, you can call it as you would call any other C/++ function.
- sitkack 11y agoOh, I thought there was a magical way to call from C++ into Rust using only a C++ header w/o no_mangle/extern.