Skip to content

Commit c8292ad

Browse files
committed
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 <[email protected]>
1 parent 831dab9 commit c8292ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ venv
5959
.clangd
6060
new.info
6161

62+
# Cargo drops lock files in projects to capture resolved dependencies.
63+
# We don't want to record these.
64+
Cargo.lock
65+
66+
# Cargo encourages a .cargo/config.toml file to symlink to a generated file. Don't save these.
67+
.cargo/
68+
6269
# CI output
6370
compliance.xml
6471
_error.types

0 commit comments

Comments
 (0)