]> cvs.zerfleddert.de Git - m1-debian/blame - prepare_rust.sh
add build script for speakersafeteyd
[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
7c4b8814
TG
13mkdir -p "$(pwd)/build"
14export CARGO_HOME="$(pwd)/build/cargo"
15export RUSTUP_HOME="$(pwd)/build/rust"
16rm -rf ${CARGO_HOME} ${RUSTUP_HOME}
17curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain none
18source "$(pwd)/build/cargo/env"
4f88b925 19rustup override set 1.70.0
31b39e6a 20rustup default 1.70.0
7c4b8814 21rustup component add rust-src
4f88b925 22cargo install --locked --version 0.62.0 bindgen-cli
7c4b8814
TG
23rustup component add rustfmt
24rustup component add clippy
Impressum, Datenschutz