From 7c4b8814e890276d5ae48ec3251ddbf028c13251 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Sun, 5 Mar 2023 20:39:34 +0100 Subject: [PATCH] cut the crap --- prepare_rust.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/prepare_rust.sh b/prepare_rust.sh index 2ed6c32..de85c9b 100644 --- a/prepare_rust.sh +++ b/prepare_rust.sh @@ -10,18 +10,14 @@ 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.66.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.66.0 +rustup component add rust-src +cargo install --locked --version 0.56.0 bindgen +rustup component add rustfmt +rustup component add clippy -- 2.39.5