init repo
This commit is contained in:
98
.vscode/tasks.json
vendored
Normal file
98
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "requirements:check (native)",
|
||||
"type": "shell",
|
||||
"command": "bash ./scripts/check-requirements.sh --mode native",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "requirements:check (nix)",
|
||||
"type": "shell",
|
||||
"command": "bash ./scripts/check-requirements.sh --mode nix-host && nix develop -c bash ./scripts/check-requirements.sh --mode nix-shell",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "build:check (native)",
|
||||
"type": "shell",
|
||||
"command": "cargo check",
|
||||
"group": "build",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "build:check (nix)",
|
||||
"type": "shell",
|
||||
"command": "nix develop -c cargo check",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "build:lint (native)",
|
||||
"type": "shell",
|
||||
"command": "cargo fmt --all && cargo check && cargo clippy --workspace --all-targets --all-features -- -D warnings",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "build:lint (nix)",
|
||||
"type": "shell",
|
||||
"command": "nix develop -c bash -lc 'cargo fmt --all && cargo check && cargo clippy --workspace --all-targets --all-features -- -D warnings'",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "dev:run (native)",
|
||||
"type": "shell",
|
||||
"command": "cargo run",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "dev:run (nix)",
|
||||
"type": "shell",
|
||||
"command": "nix develop -c cargo run",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "dev:watch (native)",
|
||||
"type": "shell",
|
||||
"command": "cargo watch -x run",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "dev:watch (nix)",
|
||||
"type": "shell",
|
||||
"command": "nix develop -c cargo watch -x run",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "run:release (native)",
|
||||
"type": "shell",
|
||||
"command": "cargo run --release --no-default-features",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "run:release (nix)",
|
||||
"type": "shell",
|
||||
"command": "nix develop -c cargo run --release --no-default-features",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user