Skip to content

Commit

Permalink
Next revision of my template
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodStainedCrow committed May 14, 2024
1 parent 2a9698e commit 71d0f81
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 320 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM mcr.microsoft.com/devcontainers/rust:latest

RUN apt update && apt upgrade -y
RUN apt install coz-profiler

USER vscode
RUN rustup component add rustfmt clippy
RUN rustup target add x86_64-pc-windows-msvc
RUN cargo install cargo-watch cargo-nextest cargo-xwin
20 changes: 17 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"TODO",
"XXX",
"[ ]",
"[x]",
"todo!()",
"unsafe {",
"unsafe fn"
Expand All @@ -18,17 +17,32 @@
"todo-tree.regex.regex": "($TAGS)",
"rust-analyzer.check.command": "clippy",
"VsCodeTaskButtons.tasks": [
{
"label": "Build Windows",
"task": "build_win",
},
{
"label": "Build",
"task": "build",
},
{
"label": "Test",
"task": "test_all",
}
},
{
"label": "Bench",
"task": "bench_all",
},
{
"label": "Watch",
"task": "watch_tests",
},
],
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
}
},
"rust-analyzer.check.extraArgs": [
"--no-deps"
]
}
59 changes: 54 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,74 @@
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"type": "shell",
"command": "cargo",
"args": [
"xwin",
"build",
"--target",
"x86_64-pc-windows-msvc"
],
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "build_win"
},
{
"type": "shell",
"command": "cargo",
"args": [
"build",
],
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "build"
},
{
"type": "cargo",
"command": "xwin",
"type": "shell",
"command": "cargo",
"args": [
"test",
"test"
],
"problemMatcher": [
"$rustc"
],
"group": "test",
"label": "test_all"
},
{
"type": "shell",
"command": "cargo",
"args": [
"bench"
],
"problemMatcher": [
"$rustc"
],
"group": "test",
"label": "bench_all"
},
{
"type": "shell",
"command": "cargo",
"args": [
"watch",
"--poll",
"-q",
"-c",
"-w",
"src/",
"-x",
"'nextest run --tests test_'",
],
"problemMatcher": [
"$rustc"
],
"group": "test",
"label": "watch_tests"
},
]
}
Loading

0 comments on commit 71d0f81

Please sign in to comment.