Skip to content

Commit 620d487

Browse files
authored
Fixing target and adding debug to Rust gitignore (#3436)
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
1 parent 18aa6d8 commit 620d487

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Rust.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
/target/
3+
debug/
4+
target/
45

56
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
67
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

0 commit comments

Comments
 (0)