From 50c5706f1a5d93d211b85739087fd430978d50ad Mon Sep 17 00:00:00 2001 From: Kaan Barmore-Genc Date: Fri, 25 Nov 2022 01:03:58 -0500 Subject: [PATCH] Add `cargo audit` to rust --- Readme.md | 4 ++++ rust/Dockerfile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index e8a8710..752b658 100644 --- a/Readme.md +++ b/Readme.md @@ -11,6 +11,10 @@ regular docker images and can be used anywhere. Gives you access to `rsync`, `ssh`, and `scp` commands. +### rust + +Rust stable toolchain, with `rustup`, `fmt`, `clippy`, `llvm-tools`, and `audit`. + --- ## Adding a new container diff --git a/rust/Dockerfile b/rust/Dockerfile index 3b46b4c..ad574ed 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -2,9 +2,11 @@ FROM alpine:latest LABEL org.opencontainers.image.authors="kaan@bgenc.net" -RUN apk add --no-cache rustup \ +RUN apk add --no-cache rustup build-base pkgconfig openssl-dev \ && rustup-init -y ENV PATH=/root/.cargo/bin:$PATH RUN rustup component add llvm-tools-preview + +RUN cargo install cargo-audit