Skip to content

Commit

Permalink
Draft devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed Mar 24, 2024
1 parent 0ca969f commit 3565fac
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM fedora:latest
COPY . .
RUN dnf update && chmod +x ./setup.sh && ./setup.sh
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Codespaces Rust DevEnv",
"dockerFile": "Dockerfile",
"customizations": {
"vscode": {
"extensions": [
"jdinhlife.gruvbox",
"rust-lang.rust-analyzer",
"vscode-icons-team.vscode-icons"
],
"settings": {
"diffEditor.ignoreTrimWhitespace": true,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "block",
"editor.fontFamily": "'Source Code Pro', 'Cascadia Code'",
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"editor.trimAutoWhitespace": true,
"terminal.integrated.shell.linux": "/usr/bin/bash",
"vsicons.dontShowNewVersionMessage": true,
"workbench.colorTheme": "Gruvbox Dark Soft",
"workbench.iconTheme": "vscode-icons"
}
}
}
}
14 changes: 14 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# Install Rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

# Install wasm-pack
cargo install wasm-pack

# Add Rust WASM target
rustup target add wasm32-unknown-unknown

# Install and add Clyppy
cargo install clippy
rustup component add clippy

0 comments on commit 3565fac

Please sign in to comment.