Nix Powered Rust Template
- ❄️ Declarative Environments with Nix
- 🦀 Be safe with Rust!
- 📦 Incremental and Reproducible builds with crate2nix
- 🐳 Build Containers with Nix dockerTools
- 🌈 Multi-platform
- 🔧 Make it your own!
This project serves as a template for projects utilizing the Nix package manager and the Rust programming language. Nix provides a declarative and reproducible way to manage dependencies, environments, and builds across different platforms.
-
Declarative Configuration: Leverage the power of declarative configuration to specify your project's dependencies and environment.
-
Reproducibility: Ensure consistent and reproducible builds across different systems, reducing the "it works on my machine" problem.
-
Multi-language Support: Nix supports a wide range of programming languages, making it suitable for diverse projects.
Follow these steps to get your project up and running:
-
Install Nix: Ensure that Nix is installed on your system. Visit Nix Installation Guide for instructions.
-
Clone the Repository:
git clone https://github.com/your-username/your-project.git cd your-project
-
Enter the Development Environment
nix develop
Use cargo as normal.
-
Regenerate Crate.nix during CI and build
crate2nix generate nix build