summaryrefslogtreecommitdiffstats
path: root/options/gitignore/Rust
diff options
context:
space:
mode:
Diffstat (limited to 'options/gitignore/Rust')
-rw-r--r--options/gitignore/Rust17
1 files changed, 8 insertions, 9 deletions
diff --git a/options/gitignore/Rust b/options/gitignore/Rust
index 37727f91cb..50281a4427 100644
--- a/options/gitignore/Rust
+++ b/options/gitignore/Rust
@@ -1,11 +1,10 @@
-# Compiled files
-*.o
-*.so
-*.rlib
-*.dll
-
-# Executables
-*.exe
-
# Generated by Cargo
+# will have compiled files and executables
/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
+
+# These are backup files generated by rustfmt
+**/*.rs.bk