From 56634b64af0ff21ee2f0fea5c05c5543025f036d Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 19 May 2024 08:30:50 +0800 Subject: [PATCH] Add cargo-semver-checks --- TOOLS.md | 1 + manifests/cargo-semver-checks.json | 38 +++++++++++++++++++++ tools/codegen/base/cargo-semver-checks.json | 13 +++++++ 3 files changed, 52 insertions(+) create mode 100644 manifests/cargo-semver-checks.json create mode 100644 tools/codegen/base/cargo-semver-checks.json diff --git a/TOOLS.md b/TOOLS.md index aae49dffe..a47204be6 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -25,6 +25,7 @@ If a tool not included in the list below is specified, this action uses [cargo-b | [**cargo-minimal-versions**](https://github.com/taiki-e/cargo-minimal-versions) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-minimal-versions/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-minimal-versions/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-minimal-versions/blob/main/LICENSE-MIT) | | [**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/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-no-dev-deps/blob/main/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/main/LICENSE.md) | +| [**cargo-semver-checks**](https://github.com/obi1kenobi/cargo-semver-checks) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/obi1kenobi/cargo-semver-checks/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-MIT) | | [**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, Windows | [LGPLv2.1](https://github.com/drahnr/cargo-spellcheck/blob/master/LICENSE-LGPL) | | [**cargo-tarpaulin**](https://github.com/xd009642/tarpaulin) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/xd009642/tarpaulin/releases) | Linux, macOS, Windows | [MIT](https://github.com/xd009642/tarpaulin/blob/develop/LICENSE-MIT) OR [Apache-2.0](https://github.com/xd009642/tarpaulin/blob/develop/LICENSE-APACHE) | diff --git a/manifests/cargo-semver-checks.json b/manifests/cargo-semver-checks.json new file mode 100644 index 000000000..6c8d4920a --- /dev/null +++ b/manifests/cargo-semver-checks.json @@ -0,0 +1,38 @@ +{ + "rust_crate": "cargo-semver-checks", + "template": { + "x86_64_linux_musl": { + "url": "https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v${version}/cargo-semver-checks-x86_64-unknown-linux-musl.tar.gz" + }, + "x86_64_macos": { + "url": "https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v${version}/cargo-semver-checks-x86_64-apple-darwin.tar.gz" + }, + "x86_64_windows": { + "url": "https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v${version}/cargo-semver-checks-x86_64-pc-windows-msvc.tar.gz" + }, + "aarch64_macos": { + "url": "https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v${version}/cargo-semver-checks-aarch64-apple-darwin.tar.gz" + } + }, + "license_markdown": "[Apache-2.0](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/obi1kenobi/cargo-semver-checks/blob/main/LICENSE-MIT)", + "latest": { + "version": "0.31.0" + }, + "0.31": { + "version": "0.31.0" + }, + "0.31.0": { + "x86_64_linux_musl": { + "checksum": "4b40df7c8877451b3c31d33399f54bc1d988cad3a2712764ce632a7425cc57df" + }, + "x86_64_macos": { + "checksum": "58809b0e431d19d6216552b222eb746b510b11dddb59dec93ae3efe302091748" + }, + "x86_64_windows": { + "checksum": "6a819e7ef26590d78ce6c127b6c0d966bd2c5012ae823455e4370f01e5e22167" + }, + "aarch64_macos": { + "checksum": "9e272af3f52835470d4f31e3791c83ee9dbf05a812af5d2f2077ec1e3c67aa67" + } + } +} diff --git a/tools/codegen/base/cargo-semver-checks.json b/tools/codegen/base/cargo-semver-checks.json new file mode 100644 index 000000000..b6f40976f --- /dev/null +++ b/tools/codegen/base/cargo-semver-checks.json @@ -0,0 +1,13 @@ +{ + "repository": "https://github.com/obi1kenobi/cargo-semver-checks", + "tag_prefix": "v", + "rust_crate": "${package}", + "asset_name": "${package}-${rust_target}.tar.gz", + "version_range": ">= 0.31.0", + "platform": { + "x86_64_linux_musl": {}, + "x86_64_macos": {}, + "x86_64_windows": {}, + "aarch64_macos": {} + } +}