diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..42d5bd6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +{ + "name": "Rust Workshop", + "image": "mcr.microsoft.com/devcontainers/rust:1-bullseye", + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "rust-lang.rust-analyzer", + "vadimcn.vscode-lldb", + "tamasfe.even-better-toml", + "humao.rest-client" + ], + "settings": { + "editor.formatOnSave": true, + "rust-analyzer.check.command": "clippy" + } + } + }, + "postCreateCommand": "cargo build", + "forwardPorts": [7878], + "portsAttributes": { + "7878": { + "label": "HTTP Server", + "onAutoForward": "notify" + } + } +} \ No newline at end of file