Rust Library in Rhino 6 Plugin

Hello,

We have some Geometric Libraries written in Rust. Is there any way we could reference them from a Rhino plugin written in C#?

Thanks

You’ll have to go the P/Invoke path. Here is a Stack Overflow question from someone who also does that:

Thank you for the reply. Yes I managed to make the call, all I needed was to bundle the DLL along with .rhp plugin file. In fact it’s pretty flexible in that one can even supply the full path to the Rust libs in the C# annotations.

Note that doing full paths will make it hard to place DLLs in other locations…