Skip to content

Commit

Permalink
Add Dockerfile and devcontainer.json, update Cargo.toml and add launc…
Browse files Browse the repository at this point in the history
…h.json and config.rs
  • Loading branch information
dianhsu committed Dec 29, 2023
1 parent 1de6034 commit 5554ee7
Show file tree
Hide file tree
Showing 8 changed files with 1,262 additions and 88 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM rust

# Install rustfmt
RUN rustup component add rustfmt
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
{
"name": "Rust",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "rust",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer"
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb"
]
}
}
Expand Down
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/target/debug/ccs",
"args": [],
"cwd": "${workspaceFolder}"
},
]
}
Loading

0 comments on commit 5554ee7

Please sign in to comment.