diff --git a/images/linux/scripts/installers/rust.sh b/images/linux/scripts/installers/rust.sh index 605bce113..824ec899e 100644 --- a/images/linux/scripts/installers/rust.sh +++ b/images/linux/scripts/installers/rust.sh @@ -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))" \ No newline at end of file