Skip to content

Commit d0e5709

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 c8292ad commit d0e5709

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
@@ -66,6 +66,10 @@ Cargo.lock
6666
# Cargo encourages a .cargo/config.toml file to symlink to a generated file. Don't save these.
6767
.cargo/
6868

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

0 commit comments

Comments
 (0)