3 ms·
Article is a little wrong about the current state-of-the-art in writing Rust bindings for .NET. One can use Uniffi with the C# generator to get fairly automati
by pharmakom 3y ago
Article is a little wrong about the current state-of-the-art in writing Rust bindings for .NET.
One can use Uniffi with the C# generator to get fairly automatic bindings. You still need to package it up, which is a bit of a pain.
Uniffi really is an awesome idea. I expect more and more Rust code for foundational shared libraries as a result.
- appwiz 3y ago1-click link to Uniffi https://mozilla.github.io/uniffi-rs/ https://mozilla.github.io/uniffi-rs/
- steeve 3y agoI'd wager that would use P/Invoke, which is what OP is trying to avoid (having true .NET IL would make everything seamless).
- ComputerGuru 3y agoThat just automates the generation of the ffi bindings (not too different from autocxx). It’s entirely different from compiling “managed” rust code. It’s like using a C/C++ library with p/invoke vs using C++/CLI or Managed C++.
- pharmakom 3y agoNot sure how this is in disagreement with the comment.