We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bebede commit 2fb14f2Copy full SHA for 2fb14f2
Formula/c/cot.rb
@@ -0,0 +1,20 @@
1
+class Cot < Formula
2
+ desc "Rust web framework for lazy developers"
3
+ homepage "https://cot.rs"
4
+ url "https://github.com/cot-rs/cot/archive/refs/tags/v0.1.0.tar.gz"
5
+ sha256 "5021dcf1c754865081b4bfa1458cc4adeba96da57f22415cefdc8d573324788a"
6
+ license "Apache-2.0"
7
+
8
+ depends_on "rust" => :build
9
10
+ def install
11
+ system "cargo", "install", *std_cargo_args(path: "cot-cli")
12
+ end
13
14
+ test do
15
+ assert_match "cot-cli #{version}", shell_output("#{bin}/cot --version")
16
17
+ system bin/"cot", "new", "test-project"
18
+ assert_path_exists testpath/"test-project/Cargo.toml"
19
20
+end
0 commit comments