File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ function install_linux_deps() {
52
52
else
53
53
echo " cmake version is $cmake_version "
54
54
fi
55
+ # install rust
56
+ if command -v cargo > /dev/null 2>&1 ; then
57
+ echo " cargo exists"
58
+ rustup install 1.73
59
+ rustup default 1.73
60
+ else
61
+ bash -c " curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo ' rustup install failed' ; exit 1; }
62
+ source $HOME /.cargo/env
63
+ fi
55
64
}
56
65
57
66
function install_mac_deps() {
@@ -68,6 +77,15 @@ function install_mac_deps() {
68
77
fi
69
78
70
79
sudo ln -s " $( brew --prefix llvm@15) " " /usr/local/opt/llvm"
80
+ # install rust
81
+ if command -v cargo > /dev/null 2>&1 ; then
82
+ echo " cargo exists"
83
+ rustup install 1.73
84
+ rustup default 1.73
85
+ else
86
+ bash -c " curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo ' rustup install failed' ; exit 1; }
87
+ source $HOME /.cargo/env
88
+ fi
71
89
}
72
90
73
91
if ! command -v go & > /dev/null
You can’t perform that action at this time.
0 commit comments