Skip to content

Commit

Permalink
Rework pre installed tools in the devcontainer
Browse files Browse the repository at this point in the history
clippy in the nightly version comes in handy to run more lints and be
able to debug the recurring nightly problems.
cargo-tarpaulin is quite heavy to build and not that often needed, so
it can be omitted and installed on demand.
Install crates with `--locked` to avoid potential breakage.
  • Loading branch information
jonasbb committed Apr 6, 2022
1 parent e4681d5 commit 8264ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends lld python3-pip \
&& rustup update \
&& rustup toolchain install nightly --profile minimal --component rustfmt \
&& rustup toolchain install nightly --profile minimal --component clippy,rustfmt \
&& pip3 install --user --no-cache-dir pre-commit
COPY config /root/.cargo/config
RUN cargo install bacon cargo-readme cargo-tarpaulin \
RUN cargo install --locked bacon cargo-readme \
&& rm -rf ~/.cargo/registry

0 comments on commit 8264ee5

Please sign in to comment.