Rust can create dll/so/dylib?


Hello and greetings,

I maintain a desktop API where the deploy is basically a binary library (one for each OS: Windows, Linux and Mac).

At this time, does Rust is able to create such libraries during compile time ?



Yes. Details can be found here:

The details of these crate types can be found here:


In particular if you want to create a standard dynamic library to be consumed by other applications written in other languages, you most definitely want a crate type of cdylib. You typically do not want dylib.


Thanks a lot.