-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cargo-no-dev-deps.rb
36 lines (33 loc) · 1.43 KB
/
cargo-no-dev-deps.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-License-Identifier: Apache-2.0 OR MIT
# This file is @generated by formula.sh.
# It is not intended for manual editing.
class CargoNoDevDeps < Formula
desc "Cargo subcommand for running cargo without dev-dependencies"
homepage "https://github.com/taiki-e/cargo-no-dev-deps"
version "0.2.14"
license any_of: ["Apache-2.0", "MIT"]
on_macos do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-no-dev-deps/releases/download/v0.2.14/cargo-no-dev-deps-aarch64-apple-darwin.tar.gz"
sha256 "6b3b96420dcc05ea7ae48d5722768f4d9b9aabfd84e3917c6d07b27d9060ed88"
else
url "https://github.com/taiki-e/cargo-no-dev-deps/releases/download/v0.2.14/cargo-no-dev-deps-x86_64-apple-darwin.tar.gz"
sha256 "b50b0daf1642e910e250038b5f76ea83ced2f592ec1700d110a5dc8b4c46372f"
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.com/taiki-e/cargo-no-dev-deps/releases/download/v0.2.14/cargo-no-dev-deps-aarch64-unknown-linux-musl.tar.gz"
sha256 "f2f5c98d3c1c1e08423c9ef56211a5043ee1e0ef00a70c528c0394ee1217e43a"
else
url "https://github.com/taiki-e/cargo-no-dev-deps/releases/download/v0.2.14/cargo-no-dev-deps-x86_64-unknown-linux-musl.tar.gz"
sha256 "9103ae582bec788ba374cbe3c658863b3516de88dd3a00e459f7217992f3f37f"
end
end
def install
bin.install "cargo-no-dev-deps"
end
test do
system "#{bin}/cargo-no-dev-deps", "no-dev-deps", "--version"
end
end