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!\"]"); }