[PR #320] [MERGED] Add cargo-binstall metadata to Cargo.toml #420

Closed
opened 2026-06-08 11:28:05 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/320
Author: @JCallicoat
Created: 3/24/2023
Status: Merged
Merged: 4/2/2023
Merged by: @bootandy

Base: masterHead: master


📝 Commits (1)

  • 9388aef Add support for cargo-binstall to Cargo.toml

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 Cargo.toml (+4 -0)

📄 Description

Hello! This PR enables cargo-binstall to find release builds for the project on github. It uses a heuristic for finding release packages, which assumes the crate name and release package name are the same. This adds metadata to Cargo.toml to provide the correct name for the github releases and binary name.

I have tested this locally with

cargo binstall --manifest-path Cargo.toml --disable-strategies quick-install du-dust

which results in it correctly finding https://github.com/bootandy/dust/releases/download/v0.8.5/dust-v0.8.5-x86_64-unknown-linux-gnu.tar.gz


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/320 **Author:** [@JCallicoat](https://github.com/JCallicoat) **Created:** 3/24/2023 **Status:** ✅ Merged **Merged:** 4/2/2023 **Merged by:** [@bootandy](https://github.com/bootandy) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`9388aef`](https://github.com/bootandy/dust/commit/9388aef5110b69dba3822f762f54eb6aff3a235d) Add support for cargo-binstall to Cargo.toml ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+4 -0) </details> ### 📄 Description Hello! This PR enables [cargo-binstall](https://github.com/cargo-bins/cargo-binstall) to find release builds for the project on github. It uses a [heuristic for finding release packages](https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md), which assumes the crate name and release package name are the same. This adds metadata to Cargo.toml to provide the correct name for the github releases and binary name. I have tested this locally with ```bash cargo binstall --manifest-path Cargo.toml --disable-strategies quick-install du-dust ``` which results in it correctly finding https://github.com/bootandy/dust/releases/download/v0.8.5/dust-v0.8.5-x86_64-unknown-linux-gnu.tar.gz --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:28:05 +03:00
zhus closed this issue 2026-06-08 11:28:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#420