Install
Surprise! The tool for prebuilt shippable binaries has way too many ways to install it!
Whichever way you choose to install it, it should be invocable as dist ...
.
Pre-built binaries
We provide several options to access pre-built binaries for a variety of platforms. If you would like to manually download a pre-built binary, checkout the latest release on GitHub.
The package names all currently use the original name, cargo-dist
. In the future, some or all of these packages will be renamed to just dist
.
Installer scripts
macOS and Linux (not NixOS):
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.sh | sh
Windows PowerShell:
powershell -c "irm https://github.com/axodotdev/cargo-dist/releases/latest/download/cargo-dist-installer.ps1 | iex"
Package managers
Homebrew
brew install axodotdev/tap/cargo-dist
Pacman (Arch Linux)
Arch Linux users can install the cargo-dist
package from the extra repository using pacman:
pacman -S cargo-dist
Nix (NixOS, macOS)
Nix users can install cargo-dist
from the main nixpkgs repository:
nix-env -i cargo-dist
Other Options
cargo-binstall
cargo binstall cargo-dist
Build From Source
For users who need to install dist on platforms that we do not yet provide pre-built binaries for, you will need to build from source.
dist
is written in Rust and uses cargo to build. Once you've installed the Rust toolchain (rustup
), run:
cargo install cargo-dist --locked