4 ms·
In your opinion, as someone who has experience using it, can CXX make it easier to write Rust code that loads dynamically linked plugins (also written in Rust)?
by CodeMage 6y ago
In your opinion, as someone who has experience using it, can CXX make it easier to write Rust code that loads dynamically linked plugins (also written in Rust)? Sorry if the question is dumb, I started learning Rust only a month ago and one of the things I ran into is that Rust doesn't guarantee stable ABI.
- IshKebab 6y agoProbably not. It's not really designed for that, and involving C++ when you don't need to is going to make it really complicated! I think you want something like this instead: https://crates.io/crates/abi_stable https://crates.io/crates/abi_stable
- CodeMage 6y agoThanks! I didn't know about that one.