3 ms·
It's also needed because only C provides a standard ABI, so any linking of binary objects that are not being built by that exact same compiler release has to go
by zozbot234 7y ago
It's also needed because only C provides a standard ABI, so any linking of binary objects that are not being built by that exact same compiler release has to go through that lowest common denominator. Rust even provides 'bindgen' and 'cbindgen' utilities to make this pattern more workable.
- mrec 7y agoOh sure, my doubletake was at them going this route rather than the "obvious" one of having the Rust implementation expose a Rust API and then having a separate C-API wrapper around that.