A fast-paced 2D MMORPG.
Go to file
2023-11-26 23:03:29 +00:00
src chore: try to fix an error...needs fixing 2023-11-26 23:03:29 +00:00
.envrc chore: initialise repository and cargo project 2023-11-26 21:32:11 +00:00
.gitignore chore: initialise repository and cargo project 2023-11-26 21:32:11 +00:00
Cargo.lock chore: initialise repository and cargo project 2023-11-26 21:32:11 +00:00
Cargo.toml chore: initialise repository and cargo project 2023-11-26 21:32:11 +00:00
flake.nix chore: try to fix an error...needs fixing 2023-11-26 23:03:29 +00:00
README.md chore: initialise repository and cargo project 2023-11-26 21:32:11 +00:00

❄️ 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)