From 73284604a3c53d7199bff672d8d6b2f2b84f2fc6 Mon Sep 17 00:00:00 2001 From: Max Azatian <66359507+HardMax71@users.noreply.github.com> Date: Wed, 28 Oct 2026 14:06:51 +0100 Subject: [PATCH] Support similarity-rs (#2017) --- TOOLS.md | 1 + manifests/similarity-rs.json | 29 +++++++++++++++++++++++++++ tools/ci/tool-list.sh | 1 + tools/codegen/base/similarity-rs.json | 13 ++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 manifests/similarity-rs.json create mode 100644 tools/codegen/base/similarity-rs.json diff --git a/TOOLS.md b/TOOLS.md index ff65ce46..a98bc123 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -97,6 +97,7 @@ See the [Supported tools section in README.md](README.md#supported-tools) for ho | [**sccache**](https://github.com/mozilla/sccache) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mozilla/sccache/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/mozilla/sccache/blob/main/LICENSE) | | | [**shellcheck**](https://www.shellcheck.net) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/koalaman/shellcheck/releases) | Linux, macOS, Windows | [GPL-3.0](https://github.com/koalaman/shellcheck/blob/master/LICENSE) | | | [**shfmt**](https://github.com/mvdan/sh) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/mvdan/sh/blob/master/LICENSE) | | +| [**similarity-rs**](https://github.com/mizchi/similarity) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mizchi/similarity/releases) | Linux, macOS | [MIT](https://github.com/mizchi/similarity/blob/main/LICENSE) | | | [**syft**](https://github.com/anchore/syft) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/anchore/syft/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/anchore/syft/blob/main/LICENSE) | | | [**taplo**](https://github.com/tamasfe/taplo) (alias: `taplo-cli`) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/tamasfe/taplo/releases) | Linux, macOS, Windows | [MIT](https://github.com/tamasfe/taplo/blob/master/LICENSE) | | | [**tombi**](https://tombi-toml.github.io/tombi/) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/tombi-toml/tombi/releases) | Linux, macOS, Windows | [MIT](https://github.com/tombi-toml/tombi/blob/main/LICENSE) | | diff --git a/manifests/similarity-rs.json b/manifests/similarity-rs.json new file mode 100644 index 00000000..ba12a97d --- /dev/null +++ b/manifests/similarity-rs.json @@ -0,0 +1,29 @@ +{ + "rust_crate": "similarity-rs", + "template": { + "x86_64_linux_gnu": { + "url": "https://github.com/mizchi/similarity/releases/download/v${version}/similarity-v${version}-x86_64-unknown-linux-gnu.tar.gz", + "bin": "similarity-v${version}-x86_64-unknown-linux-gnu/similarity-rs" + }, + "aarch64_macos": { + "url": "https://github.com/mizchi/similarity/releases/download/v${version}/similarity-v${version}-aarch64-apple-darwin.tar.gz", + "bin": "similarity-v${version}-aarch64-apple-darwin/similarity-rs" + } + }, + "latest": { + "version": "0.5.0" + }, + "0.5": { + "version": "0.5.0" + }, + "0.5.0": { + "x86_64_linux_gnu": { + "etag": "0x8DE97D292B71A6B", + "hash": "2afda6201b6afb1ee36c1ce51b95a538ec99310c79f661905536d917470a406a" + }, + "aarch64_macos": { + "etag": "0x8DE97D2929D94A7", + "hash": "d5a6abcf915b87061857c23a1934883a99b93970a66c627cc8b7f3286c0ba916" + } + } +} diff --git a/tools/ci/tool-list.sh b/tools/ci/tool-list.sh index 5d9752a4..8ce5c139 100755 --- a/tools/ci/tool-list.sh +++ b/tools/ci/tool-list.sh @@ -25,6 +25,7 @@ glibc_pre_2_34_incompat=( cargo-sort cargo-vet espup + similarity-rs wait-for-them xbuild ) diff --git a/tools/codegen/base/similarity-rs.json b/tools/codegen/base/similarity-rs.json new file mode 100644 index 00000000..9b8d5f25 --- /dev/null +++ b/tools/codegen/base/similarity-rs.json @@ -0,0 +1,13 @@ +{ + "repository": "https://github.com/mizchi/similarity", + "license_markdown": "[MIT](https://github.com/mizchi/similarity/blob/main/LICENSE)", + "tag_prefix": "v", + "version_range": ">= 0.5.0", + "rust_crate": "${package}", + "asset_name": "similarity-v${version}-${rust_target}.tar.gz", + "bin": "similarity-v${version}-${rust_target}/${package}${exe}", + "platform": { + "x86_64_linux_gnu": {}, + "aarch64_macos": {} + } +}