r2d2-redis icon indicating copy to clipboard operation
r2d2-redis copied to clipboard

Should Cargo.lock be committed?

Open jonfk opened this issue 4 years ago • 1 comments

According to the cargo docs, libraries shouldn't commit their Cargo.lock file and it should actually be added to their .gitignore. https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries

I was wondering if that is correct or if there is a reason why the Cargo.lock file is committed in this repository. https://github.com/sorccu/r2d2-redis/blob/c04b8ec/Cargo.lock

jonfk avatar Dec 23 '19 19:12 jonfk