# 使用 Homebrew, apk, Nix, pacman 安装 cargo-release

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-release
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-release
```

  证据: Alpine Linux edge package indexes: cargo-release from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-release
```

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

## 软件包事实

- **软件包键:** brew:cargo-release
- **软件包管理器:** Homebrew
- **版本:** 1.1.3
- **来源摘要:** Cargo subcommand release: everything about releasing a rust crate
- **主页:** <https://github.com/crate-ci/cargo-release>
- **仓库:** <https://github.com/crate-ci/cargo-release>
- **最后更新:** 2026-07-10T18:05:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-release (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cargo-release is a Cargo subcommand that wraps common Rust crate release tasks such as validation, version bumps, changelog replacements, publishing, tagging, and pushing.

### 项目历史

The crate was first published on crates.io in March 2016, the same month the GitHub repository was created. Its README frames the tool as an extension of cargo publish with release-management defaults, while the reference documents a step-based CLI and configuration model.

### 采用历史

The tool has long-running crates.io distribution, with 146 versions reported by the crates.io API and v1.1.2 current in 2026. Batch package facts list it in Homebrew, Alpine, Nix, and Arch, indicating use outside direct cargo install workflows.

### 使用方式

The default mode is a dry run: users run cargo release [level] to preview changes and add --execute to perform the release. The reference lists steps for changes, version, replace, hook, commit, publish, owner, tag, push, and config.

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

It matters to Rust package maintainers because crate releases are multi-step and easy to get subtly wrong; cargo-release centralizes version policy, workspace dependency updates, publishing, and git tagging in a reproducible Cargo-native workflow.

### 时间线

- 2016: First crates.io release and GitHub repository creation.
- 2025: v0.25.x releases continued before the 1.x line.
- 2026: crates.io and GitHub releases reported v1.1.2 as current.

### Related projects

- README lists related release tools including release-pr Action, cargo-smart-release, cargo-set-version, cargo-unleash, release-plz, and cargo-workspaces.
- cargo publish and git are prerequisites or delegated tools in the documented workflow.

### 来源

- <https://api.github.com/repos/crate-ci/cargo-release>
- <https://github.com/crate-ci/cargo-release>
- <https://github.com/crate-ci/cargo-release/blob/master/docs/reference.md>
- <https://github.com/crate-ci/cargo-release#readme>
- <https://crates.io/api/v1/crates/cargo-release>
- <https://formulae.brew.sh/api/formula/cargo-release.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Linux: ~/.config/cargo-release/release.toml
- macOS: ~/Library/Application Support/cargo-release/release.toml
- Unix: $CRATE/Cargo.toml ([package.metadata.release]), $CRATE/release.toml, $WORKSPACE/Cargo.toml ([workspace.metadata.release]), $WORKSPACE/release.toml, ~/.release.toml
- Windows: %FOLDERID_RoamingAppData%/cargo-release/release.toml
## 其他软件包管理器记录

- Nix - cargo-release: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-release/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-release - 1.1.3-r0: normalized package name match | Alpine Linux edge package indexes: cargo-release from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Everything about releasing a rust crate | https://github.com/crate-ci/cargo-release
- pacman - cargo-release - 1.1.3-1: normalized package name match | Arch Linux sync databases: cargo-release from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cargo subcommand "release": everything about releasing a rust crate | https://github.com/crate-ci/cargo-release


## Combined YAML source

View the package source record on GitHub. [combined/cargo-release.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-release.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
