Lokal debuggen ermöglichen

This commit is contained in:
Eric Neuber 2026-03-11 17:40:13 +01:00
parent 0c10ff4051
commit 923a35cad1
2 changed files with 6 additions and 1 deletions

5
.vscode/cargo-build-version.sh vendored Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# Patch Cargo.toml version from VERSION file before build
VERSION=$(cat VERSION)
sed -i "s/^version = ".*"/version = \"$VERSION\"/" Cargo.toml
exec cargo build

2
.vscode/tasks.json vendored
View File

@ -4,7 +4,7 @@
{ {
"label": "cargo build", "label": "cargo build",
"type": "shell", "type": "shell",
"command": "cargo build", "command": ".vscode/cargo-build-version.sh",
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true