diff --git a/Cargo.toml b/Cargo.toml index 821f3aecb9..f290f501fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,24 @@ edition.workspace = true default-run = "wasmtime" rust-version.workspace = true +[package.metadata.binstall] +pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-{target-family}{archive-suffix}" +bin-dir = "{name}-{version}-{target-arch}-{target-family}/{bin}{binary-ext}" +pkg-fmt = "txz" +[package.metadata.binstall.overrides.x86_64-apple-darwin] +pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-macos{archive-suffix}" +bin-dir = "{name}-v{version}-{target-arch}-macos/{bin}{binary-ext}" +[package.metadata.binstall.overrides.aarch64-apple-darwin] +pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-macos{archive-suffix}" +bin-dir = "{name}-v{version}-{target-arch}-macos/{bin}{binary-ext}" +[package.metadata.binstall.overrides.x86_64-pc-windows-msvc] +pkg-fmt = "zip" +[package.metadata.binstall.overrides.x86_64-pc-windows-gnu] +pkg-fmt = "zip" +[package.metadata.binstall.overrides.x86_64-unknown-linux-musl] +pkg-url = "{repo}/releases/download/v{version}/{name}-v{version}-{target-arch}-musl{archive-suffix}" +bin-dir = "{name}-v{version}-{target-arch}-musl/{bin}{binary-ext}" + [lints] workspace = true