Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
"features": {
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/node:1": {}
},
"postCreateCommand": "./.devcontainer/post_create_command.sh",
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"eamodio.gitlens"
],
"settings": {
"git.allowForcePush": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.formatOnSave": true
}
}
}
}
12 changes: 12 additions & 0 deletions .devcontainer/post_create_command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -euo pipefail

# Package manager dependencies.
sudo apt update
sudo apt install -y build-essential pkg-config libudev-dev llvm libclang-dev protobuf-compiler libssl-dev vim

# Install the Rust toolchain.
rustup toolchain install
rustup component add rustfmt
rustup component add clippy
Loading