File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ class Wassette < Formula
2
+ desc "Security-oriented runtime that runs WebAssembly Components via MCP"
3
+ homepage "https://github.com/microsoft/wassette"
4
+ url "https://github.com/microsoft/wassette/archive/refs/tags/v0.3.0.tar.gz"
5
+ sha256 "552e5a31431abf37a7476ad343bbfc194d81b5b421dec1546345cdcc09fb5faa"
6
+ license "MIT"
7
+ head "https://github.com/microsoft/wassette.git" , branch : "main"
8
+
9
+ bottle do
10
+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "f3453f658e82db85c13e56a6a3c424270f229d1eef0ca427a94798f49ab4439f"
11
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "b0dfa98b471573e777ee918611b489b689fa101f9a607020a0d3629ca726d19a"
12
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "5b5a2ce1eb7ac4ce63f6998be348414a2dd76255fd764172d3495ffb7bea236b"
13
+ sha256 cellar : :any_skip_relocation , sonoma : "82f9753113c7604c0938ed56ad1d655bd02c4152ede8f12c6c7a69a141f583d3"
14
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "cf3344168e0d17a624b4307ca548934bca9866991d880ba171a1fbce532206fe"
15
+ end
16
+
17
+ depends_on "pkgconf" => :build
18
+ depends_on "rust" => :build
19
+
20
+ on_linux do
21
+ depends_on "openssl@3"
22
+ end
23
+
24
+ def install
25
+ system "cargo" , "install" , *std_cargo_args
26
+ end
27
+
28
+ test do
29
+ assert_match version . to_s , shell_output ( "#{ bin } /wassette --version" )
30
+
31
+ output = shell_output ( "#{ bin } /wassette component list" )
32
+ assert_equal "0" , JSON . parse ( output ) [ "total" ] . to_s
33
+ end
34
+ end
You can’t perform that action at this time.
0 commit comments