No description
- Nix 99.5%
- Rust 0.5%
| nix | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| default.nix | ||
| pkgs.nix | ||
| readme.md | ||
| shell.nix | ||
Wackery's Opinionated Rust Template
Uses niv + fenix to manage Rust. Provides both a shell and building via nix-build. Also provides direnv.
How to use
- Install niv because it makes deps easier. you dont technically need it but its recommended.
- use this repo as a template
- update the Cargo.toml to your liking
- update the
metasection in pkgs.nix with info. See this - start rusting
Included
- Rust toolchain (customizable in
pkgs.nix, you may need to update fenix if the version you want is not available.) - Nixpkgs (pinned to 25.11, updatable via
niv update) - Fenix (pinned to a specific commit, updatable via
niv update) - Gitignore.nix so that nix-build ignores files in .gitignore (and doesnt copy gigabytes to the nix store)
How to edit stuff
99% of the configuration is in pkgs.nix. You can add libraries, tools, and change the toolchain there. Anything you need for only shell use should be placed into shell.nix instead.