Skip to content

Commit 42b25cc

Browse files
committed
rust: Move ignores to top .gitignore
Apply the rules to ignore some cargo generated or used files to the whole tree, not just the samples. Signed-off-by: David Brown <[email protected]>
1 parent 9daf9a6 commit 42b25cc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ 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
67+
# file. Don't save these.
68+
.cargo/
69+
6270
# CI output
6371
compliance.xml
6472
_error.types

samples/rust/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)