From c21a1af5c46c84ff09c7be53fff1cd026d02b1c9 Mon Sep 17 00:00:00 2001 From: R Date: Thu, 8 Dec 2022 16:21:18 +0100 Subject: [PATCH] fix: rename bindgen to bindgen-cli --- linux/ubuntu/scripts/rust.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/linux/ubuntu/scripts/rust.sh b/linux/ubuntu/scripts/rust.sh index 6c7b342..921298e 100755 --- a/linux/ubuntu/scripts/rust.sh +++ b/linux/ubuntu/scripts/rust.sh @@ -19,11 +19,9 @@ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable --profil source "${CARGO_HOME}/env" rustup component add rustfmt clippy -if isUbuntuVer "22"; then - cargo install bindgen cbindgen cargo-audit cargo-outdated -else - cargo install --locked bindgen cbindgen cargo-audit cargo-outdated -fi + +cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated + chmod -R 777 "$(dirname "${RUSTUP_HOME}")" # cleanup