fix hello world example: FUCK everything is json
This commit is contained in:
parent
92476f342f
commit
96f4f559ff
3 changed files with 38 additions and 1 deletions
20
hello_world/.vscode/launch.json
vendored
Normal file
20
hello_world/.vscode/launch.json
vendored
Normal 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
17
hello_world/.vscode/tasks.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
println!("[\"Hello, world!\"]");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue