File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,9 @@ rustc -vV
88cargo -vV
99
1010if [ -n " $INSTALL_BINDGEN " ]; then
11- if ! curl --proto ' =https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh -s -- --no-modify-path \
12- | grep " everything's installed!" ;
13- # Ignoring exit code since the script might fail to write the receipt after a successful installation.
14- then
15- cargo install --force --locked bindgen-cli
16- fi
11+ # Install `cargo-binstall` first for faster installation.
12+ curl -L --proto ' =https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
13+ cargo binstall -y --force --locked bindgen-cli
1714 mkdir " $CARGO_HOME " /bin/bindgen-cli
1815 mv " $CARGO_HOME " /bin/bindgen " $CARGO_HOME " /bin/bindgen-cli/
1916 export PATH=" $CARGO_HOME /bin/bindgen-cli:$PATH "
You can’t perform that action at this time.
0 commit comments