]> git.zerfleddert.de Git - m1-debian/blobdiff - prepare_rust.sh
Line in the wrong section spotted by Jostein Kjønigsen
[m1-debian] / prepare_rust.sh
index 9cf3ab64823703e4d9cad718d0bf4262c3cdc0d9..325b96b0ece4cc6ee34a28fdacbe94fc64cc1314 100644 (file)
@@ -10,18 +10,15 @@ cd "$(dirname "$0")"
 unset LC_CTYPE
 unset LANG
 
-main() {
-        mkdir -p "$(pwd)/build"
-        export CARGO_HOME="$(pwd)/build/cargo"
-        export RUSTUP_HOME="$(pwd)/build/rust"
-        rm -rf ${CARGO_HOME} ${RUSTUP_HOME}
-        curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain none
-        source "$(pwd)/build/cargo/env"
-        rustup override set 1.62.0
-        rustup component add rust-src
-        cargo install --locked --version 0.56.0 bindgen
-        rustup component add rustfmt
-        rustup component add clippy
-}
-
-main "$@"
+mkdir -p "$(pwd)/build"
+export CARGO_HOME="$(pwd)/build/cargo"
+export RUSTUP_HOME="$(pwd)/build/rust"
+rm -rf ${CARGO_HOME} ${RUSTUP_HOME}
+curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain none
+source "$(pwd)/build/cargo/env"
+rustup override set 1.71.1
+rustup default 1.71.1
+rustup component add rust-src
+cargo install --locked --version 0.65.1 bindgen-cli
+rustup component add rustfmt
+rustup component add clippy
Impressum, Datenschutz