Hacker News new | ask | show | jobs
by jbandela1 920 days ago
> Deployment with Rust backend programs in general can be less than ideal due to having to use Dockerfiles,

Actually, in my experience, Rust is one of the best languages for ease of deployment (for much the same reason as Go). Rust/Cargo produces self-contained statically linked binaries. Rust/Cargo also has a real nice cross-compiling story. Often my deployment will be to build the binary and then basically scp the binary and supporting files (such as html/config) to the target. You don't really need Docker.

3 comments

Agreed, Rust is super easy for deployment.

I wrote a quick blog post in the past describing what the parent comment is talking about.

https://logankeenan.com/posts/deploy-your-rust-project-to-an...

As a seasoned python developer deployment of a pure Rust program is much simpler than Python. The only issue that I ever had was figuring out how to cross compile for a raspberry pi, but even that took me less time than the typical python dependency problem that may happen when you e.g. devlope on Ubuntu and deploy on Debian.

When Rust deployment gets hairy, it is typically the fault of non-Rust-dependencies.

Similarly for our Go binaries, I build them as full static binaries outside of Docker then just COPY them in. Works pretty seamlessly.