Shippable application packaging for Rust
Actively maintained. Last release 2 weeks ago, commits in 16 of the last 26 weeks. A safe choice.
pip install astral-dev-toolchain-cargo-distBuild provenance: This package is built and distributed by Astral as part of
astral-dev-toolchain. It packagescargo-distfrom tagv0.34.0at commit294c1b25d372d86e74cafead8469b9f36d02da29.
dist (formerly known as cargo-dist)
dist distributes your binaries
The TL;DR is that with dist set up, just doing this:
git commit -am "release: 0.2.0"
git tag "v0.2.0"
git push
git push --tags
Will make this Github Release:
Or if you're using oranda, you'll get this website.
Plan, Build, Host, Publish, Announce
Cutting releases of your apps and distributing binaries for them has a lot of steps, and cargo-dist is quickly growing to try to cover them all!
To accomplish this, dist functionality can be broken up into two parts:
- building (planning the release; building binaries and installers)
- distributing (hosting artifacts; publishing packages; announcing releases)
The build functionality can be used on its own if you just want some tarballs and installers, but everything really comes together when you use the distribution functionality too.
Building
As a build tool, dist can do the following:
- Pick good build flags for "shippable binaries"