Skip to content

Commit 09980ef

Browse files
Support cargo-insta (#1372)
1 parent e6fc9bc commit 09980ef

File tree

5 files changed

+308
-2
lines changed

5 files changed

+308
-2
lines changed

.github/.cspell/project-dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ epel
1313
espup
1414
fastestmirror
1515
grcov
16+
insta
1617
knope
1718
libicu
1819
linkcheck

TOOLS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ See the [Supported tools section in README.md](README.md#supported-tools) for ho
2222
| [**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) |
2323
| [**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) |
2424
| [**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) |
25+
| [**cargo-insta**](https://insta.rs/) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mitsuhiko/insta/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/mitsuhiko/insta/blob/master/LICENSE) |
2526
| [**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) |
2627
| [**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) |
2728
| [**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) |

main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,8 @@ for tool in "${tools[@]}"; do
847847
wasm2es6js) ;;
848848
# iai-callgrind-runner --version works only with iai-callgrind in nearby Cargo.toml.
849849
iai-callgrind-runner) ;;
850-
# cargo-zigbuild has no --version flag on `cargo zigbuild` subcommand.
851-
cargo-zigbuild) rx "${tool_bin_stem}" --version ;;
850+
# cargo-zigbuild/cargo-insta has no --version flag on `cargo $tool_bin_stem` subcommand.
851+
cargo-zigbuild | cargo-insta) rx "${tool_bin_stem}" --version ;;
852852
# deepsource has version command instead of --version flag.
853853
deepsource | vacuum) rx "${tool_bin_stem}" version ;;
854854
cargo-*)

manifests/cargo-insta.json

Lines changed: 286 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"repository": "https://github.com/mitsuhiko/insta",
3+
"website": "https://insta.rs/",
4+
"tag_prefix": "",
5+
"rust_crate": "${package}",
6+
"asset_name": "${package}-${rust_target}.tar.xz",
7+
"version_range": ">= 1.44.1",
8+
"bin": "${package}-${rust_target}/${package}",
9+
"platform": {
10+
"x86_64_linux_musl": {},
11+
"x86_64_macos": {},
12+
"aarch64_macos": {},
13+
"x86_64_windows": {
14+
"asset_name": "${package}-${rust_target}.zip",
15+
"bin": "${package}.exe"
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)