Skip to content

Commit 1ba2d7a

Browse files
committed
Do check in the Cargo lock files
General guidance in the rust community is that libraries should not check in the Cargo lock file. However, this is not really a good idea: Contributors should always use a deterministic dependency tree while working on the library project and this tree should also be mirrored in CI environments. To ensure this, the lock file has to be distributed alongside the sources. Additionally, checking in the library lock file does not even do any harm. It will not be picked up by cargo when publishing the library to crates.io, so it can only exist in the repository for library development purposes.
1 parent b9256d7 commit 1ba2d7a

File tree

3 files changed

+1852
-1
lines changed

3 files changed

+1852
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/target/
22
/macros/target/
33
**/*.rs.bk
4-
Cargo.lock

0 commit comments

Comments
 (0)