]>
Commit | Line | Data |
---|---|---|
9eed8ca6 TG |
1 | #!/usr/bin/env bash |
2 | ||
3 | set -o errexit | |
4 | set -o nounset | |
5 | set -o pipefail | |
6 | set -o xtrace | |
7 | ||
8 | cd "$(dirname "$0")" | |
9 | ||
10 | unset LC_CTYPE | |
11 | unset LANG | |
12 | ||
7c4b8814 TG |
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" | |
4f88b925 | 19 | rustup override set 1.70.0 |
31b39e6a | 20 | rustup default 1.70.0 |
7c4b8814 | 21 | rustup component add rust-src |
4f88b925 | 22 | cargo install --locked --version 0.62.0 bindgen-cli |
7c4b8814 TG |
23 | rustup component add rustfmt |
24 | rustup component add clippy |