diff --git a/bin/init_exercise.py b/bin/init_exercise.py index 91c9b59a6..1e8c28c57 100644 --- a/bin/init_exercise.py +++ b/bin/init_exercise.py @@ -112,7 +112,12 @@ 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) + 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: 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