From 38b65d05dc4600e8cc522e38e6b7c6eacca42724 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Wed, 27 Mar 2024 07:52:06 +0800 Subject: [PATCH 1/2] Add cargo-spellcheck --- README.md | 1 + manifests/cargo-spellcheck.json | 43 ++++++++++++++++++++++++ tools/ci/tool-list.sh | 1 + tools/codegen/base/cargo-spellcheck.json | 15 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 manifests/cargo-spellcheck.json create mode 100644 tools/codegen/base/cargo-spellcheck.json diff --git a/README.md b/README.md index 149bd4aee..eea294596 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ https://spdx.org/licenses | [**cargo-no-dev-deps**](https://github.com/taiki-e/cargo-no-dev-deps) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-no-dev-deps/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-no-dev-deps/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-no-dev-deps/blob/HEAD/LICENSE-MIT) | | [**cargo-rdme**](https://github.com/orium/cargo-rdme) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/orium/cargo-rdme/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/orium/cargo-rdme/blob/HEAD/LICENSE.md) | | [**cargo-sort**](https://github.com/DevinR528/cargo-sort) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/DevinR528/cargo-sort/releases) | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/DevinR528/cargo-sort/blob/55ec89082466f6bb246d870a8d56d166a8e1f08b/Cargo.toml#L5) | +| [**cargo-spellcheck**](https://github.com/drahnr/cargo-spellcheck) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/drahnr/cargo-spellcheck/releases) | Linux and Windows | [LGPLv2.1](https://github.com/drahnr/cargo-spellcheck/blob/f60c81ad0134c12faf08715f08d14f66e749f6e7/docs/checkers.md#L38) | | [**cargo-tarpaulin**](https://github.com/xd009642/tarpaulin) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/xd009642/tarpaulin/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/xd009642/tarpaulin/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/xd009642/tarpaulin/blob/HEAD/LICENSE-MIT) | | [**cargo-udeps**](https://github.com/est31/cargo-udeps) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/est31/cargo-udeps/releases) | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/est31/cargo-udeps/blob/HEAD/LICENSE) | | [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-APACHE) | diff --git a/manifests/cargo-spellcheck.json b/manifests/cargo-spellcheck.json new file mode 100644 index 000000000..19cef80c2 --- /dev/null +++ b/manifests/cargo-spellcheck.json @@ -0,0 +1,43 @@ +{ + "rust_crate": "cargo-spellcheck", + "template": { + "x86_64_linux_gnu": { + "url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-unknown-linux-gnu", + "bin": "cargo-spellcheck-v${version}-x86_64-unknown-linux-gnu" + }, + "x86_64_windows": { + "url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-pc-windows-gnu.exe", + "bin": "cargo-spellcheck-v${version}-x86_64-pc-windows-gnu.exe" + } + }, + "latest": { + "version": "0.13.2" + }, + "0.13": { + "version": "0.13.2" + }, + "0.13.2": { + "x86_64_linux_gnu": { + "checksum": "f547b8f992dcc43f8a4106bae8b090ecb3fcb7ef6ce336081c22636f70e876d9" + }, + "x86_64_windows": { + "checksum": "f54fb8243497258115d1eb55b99bfc94ab3e09636c78665d3b6410885ba9190a" + } + }, + "0.13.1": { + "x86_64_linux_gnu": { + "checksum": "17af34dbefad5c45d23df3e4e81b0addc78782db0ed2e8e491a1532761463e1e" + }, + "x86_64_windows": { + "checksum": "d18c19a3c5e7eb9ea516e691b54a4517a60517b6b1fb75b7f56a0c1dcc9b177e" + } + }, + "0.13.0": { + "x86_64_linux_gnu": { + "checksum": "41e99240e55f38cc6d43d7ea9f2ccd448f584eefdc262129e4238f057d995923" + }, + "x86_64_windows": { + "checksum": "57d45d5942d7ccd49599aae549c0bd5d906868eaeb39481088e55001d65f4784" + } + } +} diff --git a/tools/ci/tool-list.sh b/tools/ci/tool-list.sh index d29ce67ea..ff5ad399b 100755 --- a/tools/ci/tool-list.sh +++ b/tools/ci/tool-list.sh @@ -6,6 +6,7 @@ cd "$(dirname "$0")"/../.. # They don't provide prebuilt binaries for musl or old glibc host. glibc_pre_2_34_incompat=( + cargo-spellcheck xbuild ) glibc_pre_2_31_incompat=( diff --git a/tools/codegen/base/cargo-spellcheck.json b/tools/codegen/base/cargo-spellcheck.json new file mode 100644 index 000000000..d4459d8bd --- /dev/null +++ b/tools/codegen/base/cargo-spellcheck.json @@ -0,0 +1,15 @@ +{ + "repository": "https://github.com/drahnr/cargo-spellcheck", + "tag_prefix": "v", + "rust_crate": "${package}", + "asset_name": "${package}-v${version}-${rust_target}", + "bin": "${package}-v${version}-${rust_target}", + "version_range": ">= 0.13", + "platform": { + "x86_64_windows": { + "asset_name": "${package}-v${version}-x86_64-pc-windows-gnu.exe", + "bin": "${package}-v${version}-x86_64-pc-windows-gnu.exe" + }, + "x86_64_linux_gnu": {} + } +} From c45e618fd58c860dc3c969471d23c2eef78a38ba Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 27 Mar 2024 23:19:35 +0900 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e3fa4959d..562ff9e6c 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ https://spdx.org/licenses | [**cargo-no-dev-deps**](https://github.com/taiki-e/cargo-no-dev-deps) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-no-dev-deps/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-no-dev-deps/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-no-dev-deps/blob/HEAD/LICENSE-MIT) | | [**cargo-rdme**](https://github.com/orium/cargo-rdme) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/orium/cargo-rdme/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/orium/cargo-rdme/blob/HEAD/LICENSE.md) | | [**cargo-sort**](https://github.com/DevinR528/cargo-sort) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/DevinR528/cargo-sort/releases) | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/DevinR528/cargo-sort/blob/55ec89082466f6bb246d870a8d56d166a8e1f08b/Cargo.toml#L5) | -| [**cargo-spellcheck**](https://github.com/drahnr/cargo-spellcheck) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/drahnr/cargo-spellcheck/releases) | Linux and Windows | [LGPLv2.1](https://github.com/drahnr/cargo-spellcheck/blob/f60c81ad0134c12faf08715f08d14f66e749f6e7/docs/checkers.md#L38) | +| [**cargo-spellcheck**](https://github.com/drahnr/cargo-spellcheck) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/drahnr/cargo-spellcheck/releases) | Linux and Windows | [LGPLv2.1](https://github.com/drahnr/cargo-spellcheck/blob/f60c81ad0134c12faf08715f08d14f66e749f6e7/docs/checkers.md#nlprules) | | [**cargo-tarpaulin**](https://github.com/xd009642/tarpaulin) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/xd009642/tarpaulin/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/xd009642/tarpaulin/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/xd009642/tarpaulin/blob/HEAD/LICENSE-MIT) | | [**cargo-udeps**](https://github.com/est31/cargo-udeps) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/est31/cargo-udeps/releases) | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/est31/cargo-udeps/blob/HEAD/LICENSE) | | [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/HEAD/LICENSE-APACHE) |