13 mkdir
-p "$(pwd)/build"
14 export CARGO_HOME
="$(pwd)/build/cargo"
15 export RUSTUP_HOME
="$(pwd)/build/rust"
16 rm -rf ${CARGO_HOME} ${RUSTUP_HOME}
17 curl https
://sh.rustup.rs
-sSf | sh
-s -- -y --no-modify-path --default-toolchain none
18 source "$(pwd)/build/cargo/env"
19 rustup override
set 1.71.1
21 rustup component add rust-src
22 cargo
install --locked --version 0.65.1 bindgen-cli
23 rustup component add rustfmt
24 rustup component add clippy