add cargo dep to linux

This commit is contained in:
Dmitry Shibanov
2020-07-07 11:38:29 +03:00
parent 8226c37bf4
commit 5cc1411e14

View File

@@ -19,13 +19,15 @@ source $CARGO_HOME/env
# Install common tools
rustup component add rustfmt clippy
cargo install bindgen cbindgen
cargo install cargo-audit
cargo install cargo-outdated
echo "Test installation of the Rust toochain"
# Permissions
chmod -R 777 $(dirname $RUSTUP_HOME)
for cmd in rustup rustc rustdoc cargo rustfmt cargo-clippy bindgen cbindgen; do
for cmd in rustup rustc rustdoc cargo rustfmt cargo-clippy bindgen cbindgen 'cargo audit' 'cargo outdated'; do
if ! command -v $cmd --version; then
echo "$cmd was not installed or is not found on the path"
exit 1
@@ -54,3 +56,5 @@ DocumentInstalledItem "clippy ($(cargo-clippy --version 2>&1 | cut -d ' ' -f 2))
DocumentInstalledItem "rustdoc ($(rustdoc --version 2>&1 | cut -d ' ' -f 2))"
DocumentInstalledItem "bindgen ($(bindgen --version 2>&1 | cut -d ' ' -f 2))"
DocumentInstalledItem "cbindgen ($(cbindgen --version 2>&1 | cut -d ' ' -f 2))"
DocumentInstalledItem "cargo audit ($(cargo audit --version 2>&1 | cut -d ' ' -f 2))"
DocumentInstalledItem "cargo outdated ($(cargo outdated --version 2>&1 | cut -d ' ' -f 2))"