Skip to content

Conversation

@mkatychev
Copy link
Member

Using wasmtime manifest as reference, added cargo-binstall ability to download from the github releases:

wit-deps/Cargo.toml

Lines 12 to 21 in 074a6fa

[package.metadata.binstall]
pkg-url = "{repo}/releases/download/v{version}/wit-deps-{target-arch}-{target-vendor}-{target-family}-musl"
pkg-fmt = "bin"
[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{repo}/releases/download/v{version}/wit-deps-{target-arch}-{target-vendor}-{target-family}"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{repo}/releases/download/v{version}/wit-deps-{target-arch}-{target-vendor}-{target-family}"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
# GNU toolchain should work on windows MSVC targets
pkg-url = "{repo}/releases/download/v{version}/wit-deps-{target-arch}-{target-vendor}-{target-family}-gnu"

cargo-binstall reference doc for URLs: https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md#support-for-cargo-binstall

Copy link
Member

@rvolosatovs rvolosatovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

I don't use binstall myself, but this all looks good to me!

@rvolosatovs rvolosatovs enabled auto-merge (rebase) December 12, 2025 15:59
@rvolosatovs rvolosatovs merged commit 35f4fb9 into bytecodealliance:main Dec 12, 2025
19 checks passed
@mkatychev
Copy link
Member Author

Awesome, thanks!

I don't use binstall myself, but this all looks good to me!

@rvolosatovs it's mostly useful in CI if you want to avoid compilation for speed reasons (sort of the inverse ask of reliability in nix) that still goes through the checksum guarantees that cargo install would give you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants