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
+14
View File
@@ -0,0 +1,14 @@
# Start from the official Rust dev container image for Debian 12 (bookworm)
FROM mcr.microsoft.com/devcontainers/rust:1-1-bookworm
# Install ARM cross-compilation toolchain packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdb-multiarch \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf \
binutils-arm-linux-gnueabihf && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN rustup target add armv7-unknown-linux-gnueabihf
+41
View File
@@ -0,0 +1,41 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "lightsabre-devcontainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"dockerFile": "Dockerfile",
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
"mounts": [
{
"source": "devcontainer-cargo-cache-lightsabre",
"target": "/usr/local/cargo",
"type": "volume"
},
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/vscode/.ssh,readonly",
"type=bind,source=/home/${localEnv:USER}/.bashrc,target=/home/vscode/.bashrc,readonly",
"type=bind,source=/home/${localEnv:USER}/.bashrc.d,target=/home/vscode/.bashrc.d,readonly"
],
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "rustc --version",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"streetsidesoftware.code-spell-checker",
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb"]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}