[ANN] Embedding Rust Library in a Julia Package

I’m putting up a set of examples on how to embed a Rust Library in a Julia Package.

Interfacing between Julia and Rust library is done using Rust’s FFI: the Rust library is exposed as a C dynamic library, and Julia will call Rust functions using ccall .

Please, feel free to review and add more examples.


I´m also posting this on Rust community forums. This is my attempt to join those communities.

1 Like

Great stuff. I just created a PR that uses cbindgen and Clang to auto-generate the bindings. In addition, it would be nice to add an example where one passes structs between rust and Julia. I think I will make another PR, in the next days if that is ok for you?


This is great!!!

1 Like