Skip to content

feat: add cargo-binstall and crates.io publish support (#28) - #30

Merged
getappz merged 3 commits into
masterfrom
worktree-cargo-binstall
Jul 6, 2026
Merged

feat: add cargo-binstall and crates.io publish support (#28)#30
getappz merged 3 commits into
masterfrom
worktree-cargo-binstall

Conversation

@getappz

@getappz getappz commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Adds cargo-binstall support and crates.io publishing.

cargo-binstall: [package.metadata.binstall]\ in Cargo.toml — auto-detects GitHub Release binaries. After crates.io publish, users can run:
\
cargo binstall agentflare
\\

crates.io publish: New \crates-io-publish.yml\ workflow with dry-run.

Setup required:

  1. Add \CARGO_REGISTRY_TOKEN\ secret (from https://crates.io/settings/tokens)

Addresses #28 (cargo-binstall item).

getappz added 3 commits July 6, 2026 22:37
Add [package.metadata.binstall] to Cargo.toml for binary auto-detection. Bump version to 1.0.2. Add crates-io-publish workflow with dry-run support. cargo binstall agentflare will auto-detect GitHub Release binaries.
Use per-target overrides (mise pattern) instead of template url.
Move cargo publish from separate workflow into release.yml job.
Requires CARGO_REGISTRY_TOKEN secret.
Release flow:
1. release-plz.yml creates version-bump PR (scheduled or manual)
2. Merge PR → release-plz pushes tag + publishes to crates.io
3. Tag push triggers release.yml → builds binaries → creates GitHub Release
4. GitHub Release triggers npm-publish.yml

Binstall metadata uses per-target overrides (mise pattern).
@getappz
getappz merged commit e6d5c34 into master Jul 6, 2026
7 checks passed
@getappz
getappz deleted the worktree-cargo-binstall branch July 6, 2026 17:14
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant