Commit 0b86fd2 1 parent 57fe099 commit 0b86fd2 Copy full SHA for 0b86fd2
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ class RaMultiplex < Formula
14
14
sha256 cellar : :any_skip_relocation , x86_64_linux : "8c52e9bcda7b35d91976d2bb4e8b0fe8ecc7273a704930bac4de3a22b90b3824"
15
15
end
16
16
17
- depends_on "rust" => :build
17
+ # They're optional dependencies since many users use rustup.
18
+ depends_on "rust" => [ :build , :optional ]
19
+ depends_on "rust-analyzer" => :optional
18
20
19
21
def install
20
22
system "cargo" , "install" , *std_cargo_args
@@ -23,5 +25,10 @@ def install
23
25
service do
24
26
run [ opt_bin /"ra-multiplex" , "server" ]
25
27
keep_alive true
28
+ error_log_path var /"log/ra-multiplex.log"
29
+ log_path var /"log/ra-multiplex.log"
30
+
31
+ # Need cargo and rust-analyzer in PATH
32
+ environment_variables PATH : "#{ Dir . home } /.cargo/bin:#{ std_service_path_env } "
26
33
end
27
34
end
You can’t perform that action at this time.
0 commit comments