Add simple rust program tested with CodeLLDB
This commit is contained in:
parent
b322a2e89c
commit
7848629a1c
5 changed files with 54 additions and 0 deletions
1
support/test/rust/vimspector_test/.gitignore
vendored
Normal file
1
support/test/rust/vimspector_test/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
target/
|
||||
35
support/test/rust/vimspector_test/.vimspector.json
Normal file
35
support/test/rust/vimspector_test/.vimspector.json
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
|
||||
"configurations": {
|
||||
"Run - CodeLLDB": {
|
||||
"adapter": {
|
||||
"variables": {
|
||||
"CodeLLDB": "$HOME/.vscode/extensions/vadimcn.vscode-lldb-1.5.3",
|
||||
"build": {
|
||||
"shell": [ "cargo", "build" ],
|
||||
"cwd": "${workspaceRoot}"
|
||||
}
|
||||
},
|
||||
"command": [
|
||||
"${CodeLLDB}/adapter/codelldb",
|
||||
"--port", "${port}"
|
||||
],
|
||||
"port": "${port}",
|
||||
"configuration": {
|
||||
"type": "lldb",
|
||||
"name": "lldb",
|
||||
"cargo": {}
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"request": "launch",
|
||||
"program": "${workspaceRoot}/target/debug/vimspector_test",
|
||||
"args": [],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"env": {},
|
||||
"terminal": "integrated",
|
||||
"stopOnEntry": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
5
support/test/rust/vimspector_test/Cargo.lock
generated
Normal file
5
support/test/rust/vimspector_test/Cargo.lock
generated
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "vimspector_test"
|
||||
version = "0.1.0"
|
||||
9
support/test/rust/vimspector_test/Cargo.toml
Normal file
9
support/test/rust/vimspector_test/Cargo.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "vimspector_test"
|
||||
version = "0.1.0"
|
||||
authors = ["Ben Jackson <puremourning@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
4
support/test/rust/vimspector_test/src/main.rs
Normal file
4
support/test/rust/vimspector_test/src/main.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
fn main() {
|
||||
let s = "World!";
|
||||
println!("Hello, {}!", s);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue