2020-10-23 17:59:08 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
2020-12-28 10:54:25 +03:00
|
|
|
source ~/utils/utils.sh
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo Installing Rustup...
|
2020-12-28 10:54:25 +03:00
|
|
|
brew_smart_install "rustup-init"
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo Installing Rust language...
|
|
|
|
|
rustup-init -y --no-modify-path --default-toolchain=stable --profile=minimal
|
|
|
|
|
|
|
|
|
|
echo Initialize environment variables...
|
|
|
|
|
CARGO_HOME=$HOME/.cargo
|
|
|
|
|
|
|
|
|
|
echo Install common tools...
|
2020-11-02 16:17:58 +01:00
|
|
|
rustup component add rustfmt clippy
|
2021-01-25 19:55:35 +03:00
|
|
|
cargo install --locked bindgen cbindgen cargo-audit cargo-outdated
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo Cleanup Cargo registry cached data...
|
2020-11-02 16:17:58 +01:00
|
|
|
rm -rf $CARGO_HOME/registry/*
|
2021-01-20 14:11:00 +07:00
|
|
|
|
|
|
|
|
invoke_tests "Rust"
|