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