From b5f8fdd0f5fcceed23a6dd1b6954a0fe2efa2d4d Mon Sep 17 00:00:00 2001 From: Greg Lutostanski Date: Sat, 4 Aug 2018 22:13:41 +0200 Subject: [PATCH 1/2] update gitignore file in init_exercise.py Now it will include `target` compiled files as well. --- bin/init_exercise.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/init_exercise.py b/bin/init_exercise.py index 91c9b59a6..e15e46949 100644 --- a/bin/init_exercise.py +++ b/bin/init_exercise.py @@ -112,7 +112,13 @@ def make_exercise(name, use_maplit): # blank out the default lib.rs with inside(exercise_dir): with open('.gitignore', 'w') as gitignore: - print("# Ignore Cargo.lock if creating a library", file=gitignore) + with open('.gitignore', 'w') as gitignore: + print("# Generated by Cargo", file=gitignore) + print("# will have compiled files and executables", file=gitignore) + print("/target/", file=gitignore) + print("**/*.rs.bk", file=gitignore) + print("", file=gitignore) + print("# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries", file=gitignore) print("# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock", file=gitignore) print("Cargo.lock", file=gitignore) with open(os.path.join('src', 'lib.rs'), 'w') as lib_rs: From 17fb67c06873ce915451be9785aed2a1680bec18 Mon Sep 17 00:00:00 2001 From: Greg Lutostanski Date: Sat, 4 Aug 2018 22:14:57 +0200 Subject: [PATCH 2/2] make .gitignore for exercies same -- except grep The grep .gitignore also ignores large *.txt files All the rest now ignore target and Cargo.lock as they should Also ignoring **/*.rs.bk as that was in some but not all. Can be verified with: `md5sum exercises/*/.gitignore | sort` --- bin/init_exercise.py | 1 - exercises/accumulate/.gitignore | 1 + exercises/acronym/.gitignore | 1 + exercises/all-your-base/.gitignore | 1 + exercises/allergies/.gitignore | 1 + exercises/alphametics/.gitignore | 1 + exercises/anagram/.gitignore | 1 + exercises/armstrong-numbers/.gitignore | 7 ++++++- exercises/atbash-cipher/.gitignore | 1 + exercises/beer-song/.gitignore | 1 + exercises/binary-search/.gitignore | 8 ++++++++ exercises/bob/.gitignore | 1 + exercises/book-store/.gitignore | 5 +++++ exercises/bowling/.gitignore | 3 ++- exercises/bracket-push/.gitignore | 1 + exercises/circular-buffer/.gitignore | 1 + exercises/clock/.gitignore | 1 + exercises/collatz-conjecture/.gitignore | 8 ++++++++ exercises/crypto-square/.gitignore | 1 + exercises/custom-set/.gitignore | 1 + exercises/decimal/.gitignore | 1 + exercises/diamond/.gitignore | 8 ++++++++ exercises/difference-of-squares/.gitignore | 1 + exercises/diffie-hellman/.gitignore | 1 - exercises/dominoes/.gitignore | 1 + exercises/etl/.gitignore | 1 + exercises/forth/.gitignore | 1 + exercises/gigasecond/.gitignore | 1 + exercises/grade-school/.gitignore | 1 + exercises/grains/.gitignore | 3 ++- exercises/grep/.gitignore | 10 +++++++++- exercises/hamming/.gitignore | 1 + exercises/hello-world/.gitignore | 1 + exercises/hexadecimal/.gitignore | 1 + exercises/isbn-verifier/.gitignore | 8 ++++++++ exercises/largest-series-product/.gitignore | 3 ++- exercises/leap/.gitignore | 1 + exercises/luhn-from/.gitignore | 3 ++- exercises/luhn-trait/.gitignore | 3 ++- exercises/luhn/.gitignore | 3 ++- exercises/macros/.gitignore | 7 ++++++- exercises/minesweeper/.gitignore | 1 + exercises/nth-prime/.gitignore | 1 + exercises/nucleotide-codons/.gitignore | 1 + exercises/nucleotide-count/.gitignore | 1 + exercises/ocr-numbers/.gitignore | 1 + exercises/palindrome-products/.gitignore | 8 ++++++++ exercises/pangram/.gitignore | 1 + exercises/parallel-letter-frequency/.gitignore | 1 + exercises/pascals-triangle/.gitignore | 3 ++- exercises/perfect-numbers/.gitignore | 1 + exercises/phone-number/.gitignore | 1 + exercises/pig-latin/.gitignore | 1 + exercises/poker/.gitignore | 1 + exercises/prime-factors/.gitignore | 1 + exercises/protein-translation/.gitignore | 1 + exercises/proverb/.gitignore | 1 + exercises/pythagorean-triplet/.gitignore | 1 + exercises/queen-attack/.gitignore | 1 + exercises/raindrops/.gitignore | 1 + exercises/react/.gitignore | 1 + exercises/rectangles/.gitignore | 1 + exercises/reverse-string/.gitignore | 7 ++++++- exercises/rna-transcription/.gitignore | 1 + exercises/robot-name/.gitignore | 1 + exercises/robot-simulator/.gitignore | 1 + exercises/roman-numerals/.gitignore | 1 + exercises/rotational-cipher/.gitignore | 1 + exercises/run-length-encoding/.gitignore | 1 + exercises/say/.gitignore | 1 + exercises/scrabble-score/.gitignore | 1 + exercises/series/.gitignore | 7 ++++++- exercises/sieve/.gitignore | 1 + exercises/simple-cipher/.gitignore | 7 ++++++- exercises/simple-linked-list/.gitignore | 1 + exercises/space-age/.gitignore | 1 + exercises/spiral-matrix/.gitignore | 8 ++++++++ exercises/sublist/.gitignore | 1 + exercises/sum-of-multiples/.gitignore | 3 ++- exercises/tournament/.gitignore | 1 + exercises/triangle/.gitignore | 1 + exercises/two-bucket/.gitignore | 8 ++++++++ exercises/two-fer/.gitignore | 6 +++++- exercises/variable-length-quantity/.gitignore | 1 + exercises/word-count/.gitignore | 1 + exercises/wordy/.gitignore | 1 + 86 files changed, 182 insertions(+), 17 deletions(-) create mode 100644 exercises/binary-search/.gitignore create mode 100644 exercises/collatz-conjecture/.gitignore create mode 100644 exercises/diamond/.gitignore create mode 100644 exercises/isbn-verifier/.gitignore create mode 100644 exercises/palindrome-products/.gitignore create mode 100644 exercises/spiral-matrix/.gitignore create mode 100644 exercises/two-bucket/.gitignore diff --git a/bin/init_exercise.py b/bin/init_exercise.py index e15e46949..1e8c28c57 100644 --- a/bin/init_exercise.py +++ b/bin/init_exercise.py @@ -111,7 +111,6 @@ def make_exercise(name, use_maplit): exercise_dir = os.path.join(EXERCISES, name) # blank out the default lib.rs with inside(exercise_dir): - with open('.gitignore', 'w') as gitignore: with open('.gitignore', 'w') as gitignore: print("# Generated by Cargo", file=gitignore) print("# will have compiled files and executables", file=gitignore) diff --git a/exercises/accumulate/.gitignore b/exercises/accumulate/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/accumulate/.gitignore +++ b/exercises/accumulate/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/acronym/.gitignore b/exercises/acronym/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/acronym/.gitignore +++ b/exercises/acronym/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/all-your-base/.gitignore b/exercises/all-your-base/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/all-your-base/.gitignore +++ b/exercises/all-your-base/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/allergies/.gitignore b/exercises/allergies/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/allergies/.gitignore +++ b/exercises/allergies/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/alphametics/.gitignore b/exercises/alphametics/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/alphametics/.gitignore +++ b/exercises/alphametics/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/anagram/.gitignore b/exercises/anagram/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/anagram/.gitignore +++ b/exercises/anagram/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/armstrong-numbers/.gitignore b/exercises/armstrong-numbers/.gitignore index d236530ab..db7f315c0 100644 --- a/exercises/armstrong-numbers/.gitignore +++ b/exercises/armstrong-numbers/.gitignore @@ -1,3 +1,8 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/atbash-cipher/.gitignore b/exercises/atbash-cipher/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/atbash-cipher/.gitignore +++ b/exercises/atbash-cipher/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/beer-song/.gitignore b/exercises/beer-song/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/beer-song/.gitignore +++ b/exercises/beer-song/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/binary-search/.gitignore b/exercises/binary-search/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/binary-search/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/bob/.gitignore b/exercises/bob/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/bob/.gitignore +++ b/exercises/bob/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/book-store/.gitignore b/exercises/book-store/.gitignore index 2c38deb38..db7f315c0 100644 --- a/exercises/book-store/.gitignore +++ b/exercises/book-store/.gitignore @@ -1,3 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + # 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 diff --git a/exercises/bowling/.gitignore b/exercises/bowling/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/bowling/.gitignore +++ b/exercises/bowling/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/bracket-push/.gitignore b/exercises/bracket-push/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/bracket-push/.gitignore +++ b/exercises/bracket-push/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/circular-buffer/.gitignore b/exercises/circular-buffer/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/circular-buffer/.gitignore +++ b/exercises/circular-buffer/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/clock/.gitignore b/exercises/clock/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/clock/.gitignore +++ b/exercises/clock/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/collatz-conjecture/.gitignore b/exercises/collatz-conjecture/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/collatz-conjecture/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/crypto-square/.gitignore b/exercises/crypto-square/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/crypto-square/.gitignore +++ b/exercises/crypto-square/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/custom-set/.gitignore b/exercises/custom-set/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/custom-set/.gitignore +++ b/exercises/custom-set/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/decimal/.gitignore b/exercises/decimal/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/decimal/.gitignore +++ b/exercises/decimal/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/diamond/.gitignore b/exercises/diamond/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/diamond/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/difference-of-squares/.gitignore b/exercises/difference-of-squares/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/difference-of-squares/.gitignore +++ b/exercises/difference-of-squares/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/diffie-hellman/.gitignore b/exercises/diffie-hellman/.gitignore index a568af3e3..db7f315c0 100644 --- a/exercises/diffie-hellman/.gitignore +++ b/exercises/diffie-hellman/.gitignore @@ -6,4 +6,3 @@ # 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 - diff --git a/exercises/dominoes/.gitignore b/exercises/dominoes/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/dominoes/.gitignore +++ b/exercises/dominoes/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/etl/.gitignore b/exercises/etl/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/etl/.gitignore +++ b/exercises/etl/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/forth/.gitignore b/exercises/forth/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/forth/.gitignore +++ b/exercises/forth/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/gigasecond/.gitignore b/exercises/gigasecond/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/gigasecond/.gitignore +++ b/exercises/gigasecond/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/grade-school/.gitignore b/exercises/grade-school/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/grade-school/.gitignore +++ b/exercises/grade-school/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/grains/.gitignore b/exercises/grains/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/grains/.gitignore +++ b/exercises/grains/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/grep/.gitignore b/exercises/grep/.gitignore index 9ced18200..dfd29ee5b 100644 --- a/exercises/grep/.gitignore +++ b/exercises/grep/.gitignore @@ -1,4 +1,12 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 + +# Exercise generates some text files, and while it is meant to clean up after itself, +# it might not in the event of panics *.txt diff --git a/exercises/hamming/.gitignore b/exercises/hamming/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/hamming/.gitignore +++ b/exercises/hamming/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/hello-world/.gitignore b/exercises/hello-world/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/hello-world/.gitignore +++ b/exercises/hello-world/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/hexadecimal/.gitignore b/exercises/hexadecimal/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/hexadecimal/.gitignore +++ b/exercises/hexadecimal/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/isbn-verifier/.gitignore b/exercises/isbn-verifier/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/isbn-verifier/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/largest-series-product/.gitignore b/exercises/largest-series-product/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/largest-series-product/.gitignore +++ b/exercises/largest-series-product/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/leap/.gitignore b/exercises/leap/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/leap/.gitignore +++ b/exercises/leap/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/luhn-from/.gitignore b/exercises/luhn-from/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/luhn-from/.gitignore +++ b/exercises/luhn-from/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/luhn-trait/.gitignore b/exercises/luhn-trait/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/luhn-trait/.gitignore +++ b/exercises/luhn-trait/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/luhn/.gitignore b/exercises/luhn/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/luhn/.gitignore +++ b/exercises/luhn/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/macros/.gitignore b/exercises/macros/.gitignore index d236530ab..db7f315c0 100644 --- a/exercises/macros/.gitignore +++ b/exercises/macros/.gitignore @@ -1,3 +1,8 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/minesweeper/.gitignore b/exercises/minesweeper/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/minesweeper/.gitignore +++ b/exercises/minesweeper/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/nth-prime/.gitignore b/exercises/nth-prime/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/nth-prime/.gitignore +++ b/exercises/nth-prime/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/nucleotide-codons/.gitignore b/exercises/nucleotide-codons/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/nucleotide-codons/.gitignore +++ b/exercises/nucleotide-codons/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/nucleotide-count/.gitignore b/exercises/nucleotide-count/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/nucleotide-count/.gitignore +++ b/exercises/nucleotide-count/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/ocr-numbers/.gitignore b/exercises/ocr-numbers/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/ocr-numbers/.gitignore +++ b/exercises/ocr-numbers/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/palindrome-products/.gitignore b/exercises/palindrome-products/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/palindrome-products/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/pangram/.gitignore b/exercises/pangram/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/pangram/.gitignore +++ b/exercises/pangram/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/parallel-letter-frequency/.gitignore b/exercises/parallel-letter-frequency/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/parallel-letter-frequency/.gitignore +++ b/exercises/parallel-letter-frequency/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/pascals-triangle/.gitignore b/exercises/pascals-triangle/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/pascals-triangle/.gitignore +++ b/exercises/pascals-triangle/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/perfect-numbers/.gitignore b/exercises/perfect-numbers/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/perfect-numbers/.gitignore +++ b/exercises/perfect-numbers/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/phone-number/.gitignore b/exercises/phone-number/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/phone-number/.gitignore +++ b/exercises/phone-number/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/pig-latin/.gitignore b/exercises/pig-latin/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/pig-latin/.gitignore +++ b/exercises/pig-latin/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/poker/.gitignore b/exercises/poker/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/poker/.gitignore +++ b/exercises/poker/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/prime-factors/.gitignore b/exercises/prime-factors/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/prime-factors/.gitignore +++ b/exercises/prime-factors/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/protein-translation/.gitignore b/exercises/protein-translation/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/protein-translation/.gitignore +++ b/exercises/protein-translation/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/proverb/.gitignore b/exercises/proverb/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/proverb/.gitignore +++ b/exercises/proverb/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/pythagorean-triplet/.gitignore b/exercises/pythagorean-triplet/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/pythagorean-triplet/.gitignore +++ b/exercises/pythagorean-triplet/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/queen-attack/.gitignore b/exercises/queen-attack/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/queen-attack/.gitignore +++ b/exercises/queen-attack/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/raindrops/.gitignore b/exercises/raindrops/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/raindrops/.gitignore +++ b/exercises/raindrops/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/react/.gitignore b/exercises/react/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/react/.gitignore +++ b/exercises/react/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/rectangles/.gitignore b/exercises/rectangles/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/rectangles/.gitignore +++ b/exercises/rectangles/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/reverse-string/.gitignore b/exercises/reverse-string/.gitignore index d236530ab..db7f315c0 100644 --- a/exercises/reverse-string/.gitignore +++ b/exercises/reverse-string/.gitignore @@ -1,3 +1,8 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/rna-transcription/.gitignore b/exercises/rna-transcription/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/rna-transcription/.gitignore +++ b/exercises/rna-transcription/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/robot-name/.gitignore b/exercises/robot-name/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/robot-name/.gitignore +++ b/exercises/robot-name/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/robot-simulator/.gitignore b/exercises/robot-simulator/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/robot-simulator/.gitignore +++ b/exercises/robot-simulator/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/roman-numerals/.gitignore b/exercises/roman-numerals/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/roman-numerals/.gitignore +++ b/exercises/roman-numerals/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/rotational-cipher/.gitignore b/exercises/rotational-cipher/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/rotational-cipher/.gitignore +++ b/exercises/rotational-cipher/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/run-length-encoding/.gitignore b/exercises/run-length-encoding/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/run-length-encoding/.gitignore +++ b/exercises/run-length-encoding/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/say/.gitignore b/exercises/say/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/say/.gitignore +++ b/exercises/say/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/scrabble-score/.gitignore b/exercises/scrabble-score/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/scrabble-score/.gitignore +++ b/exercises/scrabble-score/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/series/.gitignore b/exercises/series/.gitignore index d236530ab..db7f315c0 100644 --- a/exercises/series/.gitignore +++ b/exercises/series/.gitignore @@ -1,3 +1,8 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/sieve/.gitignore b/exercises/sieve/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/sieve/.gitignore +++ b/exercises/sieve/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/simple-cipher/.gitignore b/exercises/simple-cipher/.gitignore index d236530ab..db7f315c0 100644 --- a/exercises/simple-cipher/.gitignore +++ b/exercises/simple-cipher/.gitignore @@ -1,3 +1,8 @@ -# Ignore Cargo.lock if creating a library +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/simple-linked-list/.gitignore b/exercises/simple-linked-list/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/simple-linked-list/.gitignore +++ b/exercises/simple-linked-list/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/space-age/.gitignore b/exercises/space-age/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/space-age/.gitignore +++ b/exercises/space-age/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/spiral-matrix/.gitignore b/exercises/spiral-matrix/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/spiral-matrix/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/sublist/.gitignore b/exercises/sublist/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/sublist/.gitignore +++ b/exercises/sublist/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/sum-of-multiples/.gitignore b/exercises/sum-of-multiples/.gitignore index 0e49cdd58..db7f315c0 100644 --- a/exercises/sum-of-multiples/.gitignore +++ b/exercises/sum-of-multiples/.gitignore @@ -1,7 +1,8 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 \ No newline at end of file +Cargo.lock diff --git a/exercises/tournament/.gitignore b/exercises/tournament/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/tournament/.gitignore +++ b/exercises/tournament/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/triangle/.gitignore b/exercises/triangle/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/triangle/.gitignore +++ b/exercises/triangle/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/two-bucket/.gitignore b/exercises/two-bucket/.gitignore new file mode 100644 index 000000000..db7f315c0 --- /dev/null +++ b/exercises/two-bucket/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +**/*.rs.bk + +# 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 diff --git a/exercises/two-fer/.gitignore b/exercises/two-fer/.gitignore index 143b1ca01..db7f315c0 100644 --- a/exercises/two-fer/.gitignore +++ b/exercises/two-fer/.gitignore @@ -1,4 +1,8 @@ - +# Generated by Cargo +# will have compiled files and executables /target/ **/*.rs.bk + +# 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 diff --git a/exercises/variable-length-quantity/.gitignore b/exercises/variable-length-quantity/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/variable-length-quantity/.gitignore +++ b/exercises/variable-length-quantity/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/word-count/.gitignore b/exercises/word-count/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/word-count/.gitignore +++ b/exercises/word-count/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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 diff --git a/exercises/wordy/.gitignore b/exercises/wordy/.gitignore index cb14a4206..db7f315c0 100644 --- a/exercises/wordy/.gitignore +++ b/exercises/wordy/.gitignore @@ -1,6 +1,7 @@ # Generated by Cargo # will have compiled files and executables /target/ +**/*.rs.bk # 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