From f1ec7be154a691922f7732df0b8325f8b6f22aee Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 11 Sep 2024 13:57:02 -0600 Subject: [PATCH] gitignore: Ignore some Rust/Cargo generated files Although the Cmake rules for Rust leave all build files in the build directory, sometimes tools such as IDEs can leave a few files in the source tree. Ignore these to make sure they don't get committed. Signed-off-by: David Brown --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 266b95a424a..bbdfce0f4c7 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,13 @@ venv .clangd new.info +# Cargo drops lock files in projects to capture resolved dependencies. +# We don't want to record these. +Cargo.lock + +# Cargo encourages a .cargo/config.toml file to symlink to a generated file. Don't save these. +.cargo/ + # CI output compliance.xml _error.types