This repository has been archived on 2024-09-29. You can view files and clone it, but cannot push or open issues or pull requests.
ambition/README.md

1.4 KiB

❄️ nix-template-rust-nightly 🦀

NixOS NixOS License

Minimal Rust development template for Nix

About

This is a minimal template for Rust development on the nightly channel.

Initialization

See the parent README for further instructions, but you can initialize this template with the following command in your current directory.

nix flake init -t github:MordragT/nix-templates#rust-nightly

Usage

  • nix develop: opens up a bash shell with the bare minimum Rust toolset (cargo & rustc) by default
  • nix build : builds the Rust project. Outputs the binary to ./result/bin/<name>
  • nix run: runs the Rust program.

Reference

  1. wiki/Flakes
  2. Fenix - used for managing Rust toolchains (read the makeRustPlatform example)
  3. rust-section of language frameworks - optional (use it for extending the template)