Initial commit

This commit is contained in:
2025-05-25 18:14:25 +00:00
commit 86fbf1670c
17 changed files with 846 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Remote executable 'lightsabre_backend'",
"preLaunchTask": "rust: remote Rpi debug setup",
"targetCreateCommands": [
"target create ${workspaceFolder}/target/armv7-unknown-linux-gnueabihf/debug/lightsabre_backend"
],
"processCreateCommands": [
"gdb-remote raspberrypi.local:17777"
],
"env": {
"RUST_LOG": "debug"
}
}
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"rust-analyzer.cargo.target": "armv7-unknown-linux-gnueabihf"
}
+38
View File
@@ -0,0 +1,38 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "rust: cargo ARM build (default)",
"type": "cargo",
"command": "build",
"args": ["--target", "armv7-unknown-linux-gnueabihf"],
"options": {
"cwd": "${workspaceFolder}",
"env": {
"CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER": "/usr/bin/arm-linux-gnueabihf-gcc",
"CARGO_BUILD_TARGET": "armv7-unknown-linux-gnueabihf"
}
},
"problemMatcher": [
"$rustc"
],
"group": "build",
},
{
"label": "rust: remote Rpi debug setup",
"type": "shell",
"command": "${workspaceFolder}/tools/remote_debug.sh",
"args": [
"${workspaceFolder}",
"raspberrypi.local",
"17777"
],
"group": "none",
"dependsOn": [
"rust: cargo ARM build (default)",
],
},
]
}