Probably 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
I think you want something like this instead: https://crates.io/crates/abi_stable