From 8aaad1e960d7c2adb4218bbd0970af52c63c63d6 Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 28 Aug 2024 15:04:30 -0600 Subject: [PATCH] .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 --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index bbdfce0f4c7..f9fa32b7a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,10 @@ Cargo.lock # Cargo encourages a .cargo/config.toml file to symlink to a generated file. Don't save these. .cargo/ +# Normal west builds will place the Rust target directory under the build directory. However, +# sometimes IDEs and such will litter these target directories as well. +target/ + # CI output compliance.xml _error.types