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