From 791633d60e86c254eaa696cf42035a68001e76b1 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 12 Jun 2022 22:20:39 +0000 Subject: [PATCH] testing codespaces setup for rust on arch --- .devcontainer/Dockerfile | 9 +++++++++ .devcontainer/setup.sh | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/setup.sh diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..4a45f96 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,9 @@ +FROM archlinux:latest + +WORKDIR /home/ + +COPY . . + +RUN bash ./setup.sh + +ENV PATH="/root/.cargo/bin:$PATH" \ No newline at end of file diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh new file mode 100644 index 0000000..c63b2e7 --- /dev/null +++ b/.devcontainer/setup.sh @@ -0,0 +1,15 @@ +pacman -Syu --noconfirm + +pacman -S --noconfirm \ + curl \ + git \ + base-devel \ + rustup + +rustup install nightly +rustup component add rustfmt +rustup component add rustfmt --toolchain nightly +rustup component add clippy +rustup component add clippy --tolchain nightly + +cargo install cargo-audit \ No newline at end of file