foundry-rs / foundry-rs/foundry
feat: `cargo-binstall` compatible releases
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Other (please describe)
### Describe the feature you would like
[`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall) allows to install binaries with prebuilt binaries released in github/gitlab repo releases. There is already a nightly and stable release in the repo, but its not compatible with the format used by `cargo-binstall`. This can provide an alternate path to using `foundryup` if you didn't want to trust the `foundryup` script but trusted binstall.
From my limited research the release tars should be created per target(cast, forge, anvil, chisel) and the file name to be in certain format. This will also selective install of `cast` or `forge` instead of all of them. It is possible to add custom url formats, see [here](https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md). I already tried to manually form a url with `--pkg-url "{ repo }/releases/download/{ version }/foundry_{target-family}_{target-arch}_{archive-suffix}"` but one of the main problems is it'd not allow `stable` or `nightly` to be passed as versions, needs semver crates like version.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.