A minimal Nix flake based Rust project seed with VS Code support.
- Flake-based
nix develop
shell - Main binary at
src/bin/app.rs
- VS Code support via Workspace Shared Settings extension
.vscode/settings-helper.sh
provides correct tool paths under nix for VS Code configuration
Clone and enter the project:
git clone <your-url> nix-rust-project-seed
cd nix-rust-project-seed
code .
- Open the project in VS Code
- install the Workspace Shared Settings (wss) extension
- When prompted (or via Command Palette), initialize settings from project
- The extension will call .vscode/settings-helper.sh to generate .vscode/settings.json with the right paths
⚠️ Wait for the settings.json file to appear. It can take a bit on first run as Nix downloads the required tooling- ✅ Once the file is there, reload the window
- You're good to go — Rust + Nix integration should now work out of the box