Hacker News new | ask | show | jobs
by Narew 269 days ago
Appart from cxx.rs. I think most binding between C++ and Rust are in fact C and Rust binding. So you need a C API to your C++ library (no template, no std etc...). So for me you can't use C++ library from Rust.
1 comments

You can just use CXX? Idk what to tell you. A coworker of mine is doing it. It's not some kind of weird thing.
cxx only support a part of c++ STL container. It doesn't support template and custom container implementation. So no generic, no variadic number of argument, no automatic type déduction etc...