# 使用 Homebrew, Nix, pacman, apt, winget 安装 cargo-dist

查看 cargo-dist 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cargo-dist
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-dist
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-dist
```

  证据: nixpkgs package indexes: pkgs/by-name/ca/cargo-dist/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-dist
```

  证据: Arch Linux sync databases: cargo-dist from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install dist
```

  证据: Debian stable package indexes: dist from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- winget (92%):

```sh
winget install --id axodotdev.dist -e
```

  证据: Windows Package Manager source index: axodotdev.dist from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:cargo-dist
- **软件包管理器:** Homebrew
- **版本:** 0.32.0
- **来源摘要:** Tool for building final distributable artifacts and uploading them to an archive
- **主页:** <https://axodotdev.github.io/cargo-dist/>
- **仓库:** <https://github.com/axodotdev/cargo-dist>
- **最后更新:** 2026-05-22T09:34:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dist (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.32.0
## 项目历史与用法

cargo-dist, now branded in its README as `dist`, is a release and binary-distribution tool from Axo that generates shippable artifacts, installers, release manifests, and CI workflows for Rust and other projects. It occupies the packaging layer between `cargo build` and public distribution channels such as GitHub Releases and package managers.

### 项目历史

The cargo-dist crate appeared on crates.io in September 2022, and the GitHub repository was created in October 2022. Its early identity was tightly Rust-centered, but the official README now labels the project `dist (formerly known as cargo-dist)`, reflecting its wider release-engineering ambitions.

The README describes the project as a tool that plans, builds, hosts, publishes, and announces releases. A defining design choice is generated CI: `dist init` can generate release workflows that wait for version tags, build artifacts on multiple platforms, create or edit GitHub Releases, and attach generated release notes and artifacts.

The project also documents self-hosting: dist's own releases are produced through dist-generated release machinery, with cargo-release used for version and changelog mechanics.

### 采用历史

cargo-dist grew as Rust CLI authors wanted repeatable binary releases without maintaining bespoke GitHub Actions matrices and installer scripts. The supplied package-manager facts show packaging across Homebrew, Debian/Ubuntu as `dist`, Nix, Arch Linux, and winget, indicating adoption beyond the Rust-only install path.

crates.io records more than one hundred thousand downloads, while the GitHub repository has thousands of stars. That combination of registry use, cross-platform package-manager presence, and generated CI support makes it one of the more visible Rust-origin release automation tools.

### 使用方式

A typical user initializes configuration with `dist init`, commits the generated configuration and CI workflow, then publishes by pushing a version tag. dist plans the release, builds archives and installers, produces a machine-readable manifest, and can host artifacts on a GitHub Release.

Configuration can live in Cargo.toml, package.json, dist-workspace.toml, or dist.toml, which matches the project's move from a Cargo-only helper toward a general binary distribution tool.

### 为什么软件包爱好者会关心

cargo-dist matters to package nerds because it treats release artifacts as first-class package metadata: archives, installers, checksums, changelogs, manifests, hosting locations, and package-manager publishing become a repeatable graph instead of ad hoc release notes.

It also captures a common Rust ecosystem pattern: a tool starts as a Cargo subcommand, then expands into broader developer tooling while keeping Cargo workspace integration as a core path.

### 时间线

- 2022: cargo-dist crate first published on crates.io.
- 2022: axodotdev/cargo-dist GitHub repository created.
- 2024: README documents generated CI workflows, installers, release manifests, package publishing, and self-hosted releases.
- 2026: crates.io metadata shows active updates and the 0.32.x release line.

### Related projects

- oranda is referenced by the README as a companion for generated project websites.
- cargo-release is documented in the repository's release workflow for version, changelog, and tag mechanics.
- GitHub Releases and GitHub Actions are central hosting and CI targets in the official documentation.

### 来源

- <https://api.github.com/repos/axodotdev/cargo-dist>
- <https://axodotdev.github.io/cargo-dist/book/>
- <https://crates.io/api/v1/crates/cargo-dist>
- <https://github.com/axodotdev/cargo-dist>
- <https://raw.githubusercontent.com/axodotdev/cargo-dist/main/README.md>
- input.source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: Cargo.toml, package.json, dist-workspace.toml, dist.toml
## 其他软件包管理器记录

- Nix - cargo-dist: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-dist/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-dist - 0.32.0-1: normalized package name match | Arch Linux sync databases: cargo-dist from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Shippable application packaging for Rust | https://github.com/axodotdev/cargo-dist
- Debian apt - dist - 1:3.5-236-1.1: installed executable or alias match | Debian stable package indexes: dist from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tools for developing, maintaining and distributing software
- Ubuntu apt - dist - 1:3.5-236-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: dist from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tools for developing, maintaining and distributing software
- winget - axodotdev.dist: installed executable or alias match | Windows Package Manager source index: axodotdev.dist from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/cargo-dist.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-dist.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
