Vibe coded prototype.
This commit is contained in:
8
.devcontainer/Dockerfile
Normal file
8
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM mcr.microsoft.com/devcontainers/rust:1-bookworm
|
||||
|
||||
# [Optional] Install additional packages
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install --no-install-recommends libssl-dev pkg-config
|
||||
|
||||
# Ensure the cargo target directory is owned by the vscode user
|
||||
RUN mkdir -p /workspaces/target && chown vscode:vscode /workspaces/target
|
||||
25
.devcontainer/devcontainer.json
Normal file
25
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Rust Minimal Dev",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"rust-lang.rust-analyzer",
|
||||
"tamasfe.even-better-toml",
|
||||
"vadimcn.vscode-lldb",
|
||||
"usernamehw.errorlens"
|
||||
]
|
||||
}
|
||||
},
|
||||
"remoteUser": "vscode",
|
||||
"mounts": [
|
||||
"source=rust-target-cache,target=${containerWorkspaceFolder}/target,type=volume"
|
||||
],
|
||||
// This runs every time the container starts to ensure the volume is writable
|
||||
"postStartCommand": "sudo chown vscode:vscode ${containerWorkspaceFolder}/target",
|
||||
"settings": {
|
||||
"rust-analyzer.checkOnSave.command": "clippy"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user