Skip to content

Commit 389c78d

Browse files
committed
.gitignore: Ignore Rust 'target' directories
Although the Cmake rules to build Rust applications keeps the target directory inside of the build directory, some IDE tools may generate a target directory while editing the code. Ignore these so they never get checked in. Signed-off-by: David Brown <[email protected]>
1 parent 60fde89 commit 389c78d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ Cargo.lock
6767
# file. Don't save these.
6868
.cargo/
6969

70+
# Normal west builds will place the Rust target directory under the build directory. However,
71+
# sometimes IDEs and such will litter these target directories as well.
72+
target/
73+
7074
# CI output
7175
compliance.xml
7276
_error.types

0 commit comments

Comments
 (0)