by IshKebab · 4y ago · 0 comments
It actually can't ever be, because C++ has move constructors and Rust deliberately doesn't, so you can't for example return `std::string` from a Rust function by value.
It still doesn't let you natively move them, and if you have to wrap them in something you may as well just wrap them in `Box<>` and not move them, which is what cxx does.
I guess maybe it makes a difference for passing things into existing C++ interfaces?
Anyway it looks insanely complicated.