fix hello world example: FUCK everything is json

This commit is contained in:
Frank Denzer 2023-06-02 15:06:11 +02:00
parent 92476f342f
commit 96f4f559ff
3 changed files with 38 additions and 1 deletions

20
hello_world/.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Cargo Run",
"cargo": {
"args": [
"run",
"--bin",
"${workspaceFolderBasename}"
]
},
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Cargo Build"
}
]
}

17
hello_world/.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Cargo Build",
"type": "shell",
"command": "cargo build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$rustc"
]
}
]
}

View file

@ -1,3 +1,3 @@
fn main() { fn main() {
println!("Hello, world!"); println!("[\"Hello, world!\"]");
} }