Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
@Vorpal@onlinepersona the way this is typically done is to expose an extern “C” interface in rust which provides a wrapper around the ABI-unstable rust interface. The C ABI for a given system is stable.
Note that C++ also doesn’t have a stable ABI either. The same patterns are used there.
Let me know if you want me to go into more detail on any of that. I’ve dealt with Rust and C++ FFIs for the last few years.
@Vorpal @onlinepersona the way this is typically done is to expose an extern “C” interface in rust which provides a wrapper around the ABI-unstable rust interface. The C ABI for a given system is stable.
Note that C++ also doesn’t have a stable ABI either. The same patterns are used there.
Let me know if you want me to go into more detail on any of that. I’ve dealt with Rust and C++ FFIs for the last few years.