mirror of
https://github.com/github/gitignore
synced 2024-11-09 21:38:51 +01:00
620d4878a0
The problem here was two fold: 1. the folder "/target/" would be top-level of the repo only, it should be "target/" to properly exclude target folders anywhere in the repo 2. the default Rust/Cargo folder when compiling code is "debug/", which gets used perhaps more often that "target/", added that
12 lines
326 B
Plaintext
12 lines
326 B
Plaintext
# Generated by Cargo
|
|
# will have compiled files and executables
|
|
debug/
|
|
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
|