From 54b1181dac5cc4bbc1f613b4be85e2d87ba16187 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 10 Apr 2021 12:12:49 -0400 Subject: [PATCH] Change name --- Cargo.lock | 14 +++++++------- Cargo.toml | 3 ++- README.md | 2 ++ flake.nix | 3 ++- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 39ea5bc..5318ae9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,13 +26,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" -[[package]] -name = "bouncy" -version = "0.1.0" -dependencies = [ - "clap", -] - [[package]] name = "clap" version = "2.33.3" @@ -63,6 +56,13 @@ version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" +[[package]] +name = "rust-nix-template" +version = "0.1.0" +dependencies = [ + "clap", +] + [[package]] name = "strsim" version = "0.8.0" diff --git a/Cargo.toml b/Cargo.toml index e4c3e94..4d1228e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] authors = ["Sridhar Ratnakumar "] edition = "2018" -name = "bouncy" +# If you change the name here, you must also do it in flake.nix +name = "rust-nix-template" version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index d8a3153..0295ed6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ A template Rust project with fully functional and no-frills Nix support, as well as builtin VSCode configuration to get IDE support without doing anything (open in VSCode and accept the suggestions). +See [Nix-ifying Rust projects](https://notes.srid.ca/rust-nix) for details. + ## Adapting this template Change `name` in Cargo.toml and flake.nix. Also change `description` in flake.nix. diff --git a/flake.nix b/flake.nix index 59b6f45..2419528 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,8 @@ outputs = { self, nixpkgs, utils, rust-overlay, crate2nix, ... }: let - name = "bouncy"; + # If you change the name here, you must also do it in Cargo.toml + name = "rust-nix-template"; in utils.lib.eachDefaultSystem (system: