cargo-dist
БесплатноБез исполняемых скриптовНе проверенcargo-dist (dist) release binaries for a Rust CLI. Use when setting up dist-workspace.toml, pairing dist with release-please, or publishing a Homebrew formula.
от laurigates★ 61 звезда на GitHubОб этом скилле
cargo-dist — Release Binaries for a Rust CLI
dist (formerly cargo-dist) builds
per-target archives, installers and a Homebrew formula, and generates the
release.yml GitHub workflow that does it on every tag. The Setup steps are
the non-interactive setup, written for dist 0.32; check the installed version
with dist --version and the
config reference
when it differs.
When to Use This Skill
| Use this skill when... | Use instead when... |
|---|---|
| Shipping prebuilt binaries of a Rust CLI on GitHub Releases | Versioning and changelogs only: configure-plugin:configure-release-please |
| Pairing dist with release-please tags | Tap layout, formula review, homebrew-core eligibility: the proposed homebrew-plugin |
| Adding a Homebrew formula or shell/PowerShell installer | Container images: configure-plugin:configure-container |
Pinning the actions in dist's generated release.yml |
Starting the crate itself: rust-plugin:cargo-generate |
| Producing the release once the binary is ready to ship | The binary still reads files from its checkout (embedded config, user dirs, clap shape): rust-plugin:rust-installable-cli |
Take project facts from the project, or ask
Nothing in this skill assumes an owner, tap, target list or secret layout.
Read them before writing config, and ask with AskUserQuestion for whatever
the files do not settle:
| Fact | Where to look first |
|---|---|
| Binary crates and their names | Cargo.toml (bin, [workspace] members) |
| Release tooling | release-please-config.json, .github/workflows/*release* |
Homebrew tap (<owner>/homebrew-tap) |
An existing dist-workspace.toml, the README's install section |
| Targets | Existing CI matrix, the README's supported platforms |
| How secrets reach repo settings | Ask — it is the user's choice |
When the user gives an answer that will hold across their repos (the tap, the target set, how secrets are provisioned), offer to save it as a user-level rule so later setups read it instead of asking again.
Context
- Manifests: !
find . -maxdepth 1 \( -name 'Cargo.toml' -o -name 'dist-workspace.toml' -o -name 'release-please-config.json' \) - Release workflows: !
find . -maxdepth 3 -path './.github/workflows/release*.yml'
Setup
1. Write dist-workspace.toml by hand, then generate
dist init is interactive. Write the file directly and let dist generate
produce release.yml:
[workspace]
members = ["cargo:."]
[dist]
cargo-dist-version = "0.32.0"
ci = "github"
installers = ["shell", "homebrew"]
tap = "<owner>/homebrew-tap"
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu"]
install-path = "CARGO_HOME"
create-release = false # release-please owns the GitHub Release
publish-jobs = ["./publish-homebrew"]
dist generate # writes .github/workflows/release.yml
To run a pinned dist without installing it, use mise if it is available, otherwise dist's own installer:
mise exec github:axodotdev/cargo-dist@<version> -- dist generate
2. Add the dist profile
dist build fails with "profile dist is not defined" until the workspace
Cargo.toml has it:
[profile.dist]
inherits = "release"
lto = "thin"
3. Choose which crates ship
| Situation | Setting on the crate |
|---|---|
Workspace has publish = false |
[package.metadata.dist] dist = true on each binary crate that ships — dist skips unpublishable crates otherwise |
| Several binary crates, only some ship | [package.metadata.dist] dist = false on the rest — each shipped binary crate becomes its own release and its own formula |
| Install name differs from the package name | [package.metadata.dist] formula = "<binary>" |
The formula and the archives are named after the package, not the binary.
formula changes the install name only; archives keep the package name
(<package>-<target>.tar.xz).
Set homepage in package metadata. Without it, dist generate warns "The
Homebrew publish job is enabled but no homepage was specified". In a workspace,
put homepage in [workspace.package] and homepage.workspace = true in the
crate.
Working with release-please
create-release = falsemakes dist upload to the release that already exists for the tag, instead of creating its own. release-please creates that release.- release-please must run with a GitHub App token (or a PAT), not
GITHUB_TOKEN. A tag pushed withGITHUB_TOKENdoes not trigger other workflows, sorelease.ymlnever starts. The token setup is inconfigure-plugin:configure-release-please. - On pull requests,
release.ymlruns onlyplan(pr-run-mode = "plan", the default), so a green PR check does not prove the build works. Veri
Установить cargo-dist в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(dist generate *)Bash(find *)ReadWriteEditGrepGlobAskUserQuestionTodoWriteFAQ
Что делает скилл cargo-dist?
cargo-dist (dist) release binaries for a Rust CLI. Use when setting up dist-workspace.toml, pairing dist with release-please, or publishing a Homebrew formula.
Как установить скилл cargo-dist?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cargo-dist запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic