summaryrefslogtreecommitdiff
path: root/hello-rust/.gitignore
diff options
context:
space:
mode:
authorJordan Gong <jordan@inspiron-n4050.localdomain>2020-08-04 14:46:51 +0800
committerJordan Gong <jordan@inspiron-n4050.localdomain>2020-08-04 14:46:51 +0800
commit4fe160c9186c4341a49edc2ee6fae07bd088b56a (patch)
tree3e9936d2e30401561d5ef81e2cbc18d7f5470df6 /hello-rust/.gitignore
parent0e05964fff11e3add0937e8288ebd3ec33b53fd0 (diff)
Ignore Cargo.lock
Diffstat (limited to 'hello-rust/.gitignore')
-rw-r--r--hello-rust/.gitignore19
1 files changed, 18 insertions, 1 deletions
diff --git a/hello-rust/.gitignore b/hello-rust/.gitignore
index ea8c4bf..e629269 100644
--- a/hello-rust/.gitignore
+++ b/hello-rust/.gitignore
@@ -1 +1,18 @@
-/target
+
+# Created by https://www.toptal.com/developers/gitignore/api/rust
+# Edit at https://www.toptal.com/developers/gitignore?templates=rust
+
+### Rust ###
+# 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 https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
+Cargo.lock
+
+# These are backup files generated by rustfmt
+**/*.rs.bk
+
+# End of https://www.toptal.com/developers/gitignore/api/rust
+