From ead5cfa6be597bcd901c4fa146bc43146ddf1f5a Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 1 Aug 2024 04:03:35 +0800 Subject: [PATCH] Add cargo-lambda --- TOOLS.md | 1 + manifests/cargo-lambda.json | 46 ++++++++++++++++++++++++++++ tools/codegen/base/cargo-lambda.json | 16 ++++++++++ 3 files changed, 63 insertions(+) create mode 100644 manifests/cargo-lambda.json create mode 100644 tools/codegen/base/cargo-lambda.json diff --git a/TOOLS.md b/TOOLS.md index fefc4d3cc..9e1d4bbc9 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -20,6 +20,7 @@ See the [Supported tools section in README.md](README.md#supported-tools) for ho | [**cargo-dinghy**](https://github.com/sonos/dinghy) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/sonos/dinghy/releases) | Linux, macOS | [MIT](https://github.com/sonos/dinghy/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/sonos/dinghy/blob/main/LICENSE-APACHE) | | [**cargo-export**](https://github.com/bazhenov/cargo-export) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bazhenov/cargo-export/releases) | Linux, macOS, Windows | [MIT](https://github.com/bazhenov/cargo-export/blob/master/LICENSE) | | [**cargo-hack**](https://github.com/taiki-e/cargo-hack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-hack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-hack/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-hack/blob/main/LICENSE-MIT) | +| [**cargo-lambda**](https://github.com/cargo-lambda/cargo-lambda) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cargo-lambda/cargo-lambda/releases) | Linux, macOS, Windows | [MIT](https://github.com/cargo-lambda/cargo-lambda/blob/main/LICENSE) | | [**cargo-llvm-cov**](https://github.com/taiki-e/cargo-llvm-cov) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-llvm-cov/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-llvm-cov/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-llvm-cov/blob/main/LICENSE-MIT) | | [**cargo-machete**](https://github.com/bnjbvr/cargo-machete) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bnjbvr/cargo-machete/releases) | Linux, macOS, Windows | [MIT](https://github.com/bnjbvr/cargo-machete/blob/main/LICENSE.md) | | [**cargo-make**](https://github.com/sagiegurari/cargo-make) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/sagiegurari/cargo-make/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/sagiegurari/cargo-make/blob/master/LICENSE) | diff --git a/manifests/cargo-lambda.json b/manifests/cargo-lambda.json new file mode 100644 index 000000000..faa3e3ab7 --- /dev/null +++ b/manifests/cargo-lambda.json @@ -0,0 +1,46 @@ +{ + "rust_crate": "cargo-lambda", + "template": { + "x86_64_linux_musl": { + "url": "https://github.com/cargo-lambda/cargo-lambda/releases/download/v${version}/cargo-lambda-v${version}.x86_64-unknown-linux-musl.tar.gz" + }, + "x86_64_macos": { + "url": "https://github.com/cargo-lambda/cargo-lambda/releases/download/v${version}/cargo-lambda-v${version}.x86_64-apple-darwin.tar.gz" + }, + "x86_64_windows": { + "url": "https://github.com/cargo-lambda/cargo-lambda/releases/download/v${version}/cargo-lambda-v${version}.windows-x64.zip", + "bin": "cargo-lambda.exe" + }, + "aarch64_macos": { + "url": "https://github.com/cargo-lambda/cargo-lambda/releases/download/v${version}/cargo-lambda-v${version}.aarch64-apple-darwin.tar.gz" + } + }, + "license_markdown": "[MIT](https://github.com/cargo-lambda/cargo-lambda/blob/main/LICENSE)", + "latest": { + "version": "1.3.0" + }, + "1": { + "version": "1.3.0" + }, + "1.3": { + "version": "1.3.0" + }, + "1.3.0": { + "x86_64_linux_musl": { + "etag": "0x8DC88F48F203CE3", + "checksum": "b96973d035b328413fd2a98881f01ab8de8dcaef56c6f826d05dee48925b340f" + }, + "x86_64_macos": { + "etag": "0x8DC88F48FB3C08F", + "checksum": "49043e568b1d1817b0d7e14b7bd23d0938f37b5a951ad6dbd08e8057a1e2e60b" + }, + "x86_64_windows": { + "etag": "0x8DC88F490E653BE", + "checksum": "46c19d2c0f977c27f918e24c6e362a080a63cdfbe0c97a79dabe6e375eee72c4" + }, + "aarch64_macos": { + "etag": "0x8DC88F493FF59BC", + "checksum": "8cd1d176a690d5b3704fae9c58e0e949e481e79eaa24cb5338f5cdfcf564ca05" + } + } +} diff --git a/tools/codegen/base/cargo-lambda.json b/tools/codegen/base/cargo-lambda.json new file mode 100644 index 000000000..e661e0d90 --- /dev/null +++ b/tools/codegen/base/cargo-lambda.json @@ -0,0 +1,16 @@ +{ + "repository": "https://github.com/cargo-lambda/cargo-lambda", + "tag_prefix": "v", + "rust_crate": "${package}", + "asset_name": "${package}-v${version}.${rust_target}.tar.gz", + "version_range": ">= 1.3.0", + "platform": { + "x86_64_linux_musl": {}, + "x86_64_macos": {}, + "x86_64_windows": { + "asset_name": "${package}-v${version}.windows-x64.zip", + "bin": "${package}${exe}" + }, + "aarch64_macos": {} + } +}