Enable CI/CD by adding .onedev-buildspec.yml
| .vscode | Loading last commit info... | |
| src/bin | ||
| .gitignore | ||
| .rustfmt.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| flake.lock | ||
| flake.nix | ||
| rust-toolchain.toml |
README.md
Nix + Rust + VSCode project seed 🌱
A minimal Nix flake based Rust project seed with VS Code support.
Features
- Flake-based
nix developshell - Main binary at
src/bin/app.rs - VS Code support via Workspace Shared Settings extension
.vscode/settings-helper.shprovides correct tool paths under nix for VS Code configuration
Getting Started
Clone and enter the project:
git clone <your-url> nix-rust-project-seed
cd nix-rust-project-seed
code .
VS Code Setup
- 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