2 releases
Uses new Rust 2024
| 0.1.1 | Aug 2, 2025 |
|---|---|
| 0.1.0 | Aug 2, 2025 |
#277 in Cargo plugins
16KB
71 lines
cargo-nixpackage
📦 A small utility to scaffold Rust projects with Nix Flake support.
cargo-nixpackage helps you quickly set up a Rust project using nix, automatically generating a flake.nix, initializing a Git repository, and creating wrapper scripts for Cargo commands inside a reproducible development environment.
✨ Features
- Generates a minimal
flake.nixfor your Rust project - Sets up a development shell with
rustc,cargo,rustfmt,clippy, andfish - Provides simple wrappers for:
cargo initcargo runcargo checkcargo clippy
- Customizable target system (defaults to
x86_64-linux) - Git repository auto-initialization
🧪 Usage
Create a new project
cargo nixpackage new my_project --system x86_64-linux
cd my_project
nix develop
Dependencies
~8–12MB
~219K SLoC