From cd3de4966970bb453ca72b19e25db48f39a97e21 Mon Sep 17 00:00:00 2001 From: Wayne Nilsen Date: Fri, 13 Nov 2015 06:05:10 -0500 Subject: [PATCH 1/2] add Cargo.lock to gitignore file by default See the [official recommendation](http://doc.crates.io/guide.html#cargotoml-vs-cargolock) > * If you're building a library, put Cargo.lock in your .gitignore. > * If you're building an executable, check Cargo.lock into git. --- Rust.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/Rust.gitignore b/Rust.gitignore index 37727f91..94408df6 100644 --- a/Rust.gitignore +++ b/Rust.gitignore @@ -9,3 +9,4 @@ # Generated by Cargo /target/ +Cargo.lock From 271aaab77e1de2c529e89b2f2a8221ba86cf8eb2 Mon Sep 17 00:00:00 2001 From: Wayne Nilsen Date: Fri, 13 Nov 2015 11:17:04 -0500 Subject: [PATCH 2/2] added comment --- Rust.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rust.gitignore b/Rust.gitignore index 94408df6..a29d6856 100644 --- a/Rust.gitignore +++ b/Rust.gitignore @@ -9,4 +9,7 @@ # Generated by Cargo /target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock Cargo.lock