From 251fb1aa20c4c2dc0e16768934099505d41fd62f Mon Sep 17 00:00:00 2001 From: Emily J Date: Wed, 8 Jul 2020 15:12:02 +1000 Subject: [PATCH] fixed gitignores --- guessing_game/.gitignore | 11 ++++++++++- hello_cargo/.gitignore | 10 +++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/guessing_game/.gitignore b/guessing_game/.gitignore index 4470988..0eec03d 100644 --- a/guessing_game/.gitignore +++ b/guessing_game/.gitignore @@ -1,2 +1,11 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ target/ -Cargo.lock \ No newline at end of file + +# 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 \ No newline at end of file diff --git a/hello_cargo/.gitignore b/hello_cargo/.gitignore index 4470988..0039f28 100644 --- a/hello_cargo/.gitignore +++ b/hello_cargo/.gitignore @@ -1,2 +1,10 @@ +# will have compiled files and executables +debug/ target/ -Cargo.lock \ No newline at end of file + +# 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 \ No newline at end of file