Change name

This commit is contained in:
Sridhar Ratnakumar 2021-04-10 12:12:49 -04:00
parent 88b0ffd668
commit 54b1181dac
4 changed files with 13 additions and 9 deletions

14
Cargo.lock generated
View file

@ -26,13 +26,6 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "bouncy"
version = "0.1.0"
dependencies = [
"clap",
]
[[package]] [[package]]
name = "clap" name = "clap"
version = "2.33.3" version = "2.33.3"
@ -63,6 +56,13 @@ version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41"
[[package]]
name = "rust-nix-template"
version = "0.1.0"
dependencies = [
"clap",
]
[[package]] [[package]]
name = "strsim" name = "strsim"
version = "0.8.0" version = "0.8.0"

View file

@ -1,7 +1,8 @@
[package] [package]
authors = ["Sridhar Ratnakumar <srid@srid.ca>"] authors = ["Sridhar Ratnakumar <srid@srid.ca>"]
edition = "2018" 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" version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -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). 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 ## Adapting this template
Change `name` in Cargo.toml and flake.nix. Also change `description` in flake.nix. Change `name` in Cargo.toml and flake.nix. Also change `description` in flake.nix.

View file

@ -20,7 +20,8 @@
outputs = { self, nixpkgs, utils, rust-overlay, crate2nix, ... }: outputs = { self, nixpkgs, utils, rust-overlay, crate2nix, ... }:
let let
name = "bouncy"; # If you change the name here, you must also do it in Cargo.toml
name = "rust-nix-template";
in in
utils.lib.eachDefaultSystem utils.lib.eachDefaultSystem
(system: (system: