Merge pull request #10 from tennox/master

Update readme to work around name change issue #7
This commit is contained in:
Sridhar Ratnakumar 2022-04-12 16:45:33 -04:00 committed by GitHub
commit ff66485b9b
Failed to generate hash of commit
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
authors = ["Sridhar Ratnakumar <srid@srid.ca>"] authors = ["Sridhar Ratnakumar <srid@srid.ca>"]
edition = "2018" edition = "2018"
# If you change the name here, you must also do it in flake.nix # If you change the name here, you must also do it in flake.nix (and run `cargo generate-lockfile` afterwards)
name = "rust-nix-template" name = "rust-nix-template"
version = "0.1.0" version = "0.1.0"

View file

@ -4,7 +4,9 @@ See [Nix-ifying Rust projects](https://notes.srid.ca/rust-nix) for details.
## Adapting this template ## Adapting this template
- Run `nix develop` to have a working shell ready before name change (Workaround for [an issue](https://github.com/srid/rust-nix-template/issues/7#issuecomment-1097182528)
- 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.
- Run `cargo generate-lockfile` in the nix shell
- There are two CI workflows, and one of them uses Nix which is slower (unless you configure a cache) than the other that is based on rustup. Pick one or the other depending on your trade-offs. - There are two CI workflows, and one of them uses Nix which is slower (unless you configure a cache) than the other that is based on rustup. Pick one or the other depending on your trade-offs.
## Development (Flakes) ## Development (Flakes)