Skip to content

Commit

Permalink
Merge pull request #278 from sourcefrog/devcontainer
Browse files Browse the repository at this point in the history
Update Codespaces devcontainer
  • Loading branch information
sourcefrog authored Jan 25, 2025
2 parents 994e6bb + 1ad2b83 commit 4378185
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/rust/.devcontainer/base.Dockerfile

# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
ARG VARIANT="buster"
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
# [Choice] Debian OS version (buster, bullseye)
ARG VARIANT="bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}

# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& . "$HOME/.cargo/env" \
&& rustup install stable \
&& rustup component add rust-analyzer clipy \
&& rustup default stable

# Install common Rust tools
RUN cargo install cargo-edit

# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/rust
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "Rust",
"build": {
Expand Down

0 comments on commit 4378185

Please sign in to comment.