4 ms·
Summary: - Rather than rewriting a C++ library in Rust (difficult and will introduce bugs), wrap it in a Rust interface. This seems like the cleanest way to mo
by jaredtn 7y ago
Summary:
- Rather than rewriting a C++ library in Rust (difficult and will introduce bugs), wrap it in a Rust interface.
This seems like the cleanest way to move a codebase forward without too much regression work. It reminds me of how TensorFlow 2.0 still contains tf.compat.v1 APIs so devs can write forward-facing code while maintaining existing modules.
- zozbot234 7y ago> wrap it in a Rust interface You'll need to do this anyway if you want an actual library that can be independently packaged, because that means you have to use the system ABI in the library itself. Rust does not provide a stable ABI.