add Cargo.lock to gitignore file by default
@@ -9,3 +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