Necessary tooling for distribution of library written in Rust

I’m interested in porting an existing C library over to Rust. However, the library is distributed to customers in binary form and we don’t want to have to worry about customers having a Rust compiler installed.

Is there a way to statically-link a rust binary such that if it is compiled for the right target it can run without any Rust-related tooling (ie I can just distribute a shared-object with my product)?

You should probably read the documentation because that is exactly how Rust works by default. Nothing special required. See:

Also, you may want to check out this article:

1 Like

That’s great to hear; thank you so much.

1 Like