A way to explore how to use Rust with code challenges
brew install rustup
rustup-init
rustc --version
cargo --version
- Rust-lang :
ext install rust-lang.rust
- CodeLLDB
- Better TOML
.vscode/launch.json :
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Run current file",
"program": "${workspaceFolder}/target/debug/${fileBasenameNoExtension}",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "cargo",
"sourceLanguages": ["rust"]
}
]
}
.vscode/tasks.json :
{
"version": "2.0.0",
"tasks": [
{
"label": "cargo",
"type": "shell",
"command": "cargo build",
"args": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}