I blogged! 📝

"Shipping Rust CLIs with docker"

A guide on how you can build Rust binaries, package them in docker, and then distribute and run them as if they were "normal" CLI tools.

kevingimbel.de/blog/2020/08/sh

Follow

The concepts discussed in the article are not limited to Rust.

You can do the same with or any other compiles-to-binary language.

@kevin I would say for non compile-to-binary it makes even more sense. For example Java or python where you don't want to mess up your current environment getting the right JVM version for that one little tool you want to run and not wanting to pollute your global Python installation with tons of packages.

In general I thing go or rust are very good fits for CLI tools but there are too many that are written in a imo not-so-fitting language that makes deployment painful.

@dnaka91 I agree with you 100%!

I loved Go in the past for CLI tools and nowadays I mostly use Rust, but the common problem for me is distribution. Not everybody in my team knows how to setup a binary and Homebrew has no good support for private repositories.

When I install Rust tools I usually use cargo, too.

Sign in to participate in the conversation
Mastodon

bullgit.party is a instance for everyone who is part of bullgit. 🎉