From 96f4f559ffff88ebe97baac931dc9a5c766d6e21 Mon Sep 17 00:00:00 2001 From: Frank Denzer Date: Fri, 2 Jun 2023 15:06:11 +0200 Subject: [PATCH] fix hello world example: FUCK everything is json --- hello_world/.vscode/launch.json | 20 ++++++++++++++++++++ hello_world/.vscode/tasks.json | 17 +++++++++++++++++ hello_world/src/main.rs | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 hello_world/.vscode/launch.json create mode 100644 hello_world/.vscode/tasks.json diff --git a/hello_world/.vscode/launch.json b/hello_world/.vscode/launch.json new file mode 100644 index 0000000..eb3a6e5 --- /dev/null +++ b/hello_world/.vscode/launch.json @@ -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" + } + ] +} diff --git a/hello_world/.vscode/tasks.json b/hello_world/.vscode/tasks.json new file mode 100644 index 0000000..d61b3dd --- /dev/null +++ b/hello_world/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Cargo Build", + "type": "shell", + "command": "cargo build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$rustc" + ] + } + ] +} diff --git a/hello_world/src/main.rs b/hello_world/src/main.rs index e7a11a9..6e2bc23 100644 --- a/hello_world/src/main.rs +++ b/hello_world/src/main.rs @@ -1,3 +1,3 @@ fn main() { - println!("Hello, world!"); + println!("[\"Hello, world!\"]"); }