]> cvs.zerfleddert.de Git - m1-debian/blame - prepare_rust.sh
no longer necessary. Package made it upstream and is working
[m1-debian] / prepare_rust.sh
CommitLineData
9eed8ca6
TG
1#!/usr/bin/env bash
2
3set -o errexit
4set -o nounset
5set -o pipefail
6set -o xtrace
7
8cd "$(dirname "$0")"
9
10unset LC_CTYPE
11unset LANG
12
13main() {
14 mkdir -p "$(pwd)/build"
15 export CARGO_HOME="$(pwd)/build/cargo"
16 export RUSTUP_HOME="$(pwd)/build/rust"
17 rm -rf ${CARGO_HOME} ${RUSTUP_HOME}
18 curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain none
19 source "$(pwd)/build/cargo/env"
20 rustup override set 1.62.0
21 rustup component add rust-src
22 cargo install --locked --version 0.56.0 bindgen
23 rustup component add rustfmt
24 rustup component add clippy
25}
26
27main "$@"
Impressum, Datenschutz