Skip to content

Commit f003349

Browse files
committed
chore: Track Cargo.lock
It seems that the guidance used to be that Cargo.lock should be tracked for binaries (like Prodzilla) but not for libraries. It should have been tracked from the start according to this guidance. Updated guidance is available at https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html , where the new recommendation is to simply do what is best for the project but defualt to tracking Cargo.lock. For Prodzilla, tracking Cargo.lock helps make the Docker and binary builds reproducible so I believe that it is beneficial to this project. Further reference: - https://doc.rust-lang.org/nightly/cargo/faq.html#why-have-cargolock-in-version-control - rust-lang/cargo#8728
1 parent 4ffa8de commit f003349

File tree

2 files changed

+2488
-4
lines changed

2 files changed

+2488
-4
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
debug/
66
target/
77

8-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
9-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
10-
Cargo.lock
11-
128
# These are backup files generated by rustfmt
139
**/*.rs.bk
1410

0 commit comments

Comments
 (0)