From 4586c2ecb0cd695d2184b2d9792989ff3886ab99 Mon Sep 17 00:00:00 2001 From: Harlan T Wood Date: Wed, 3 Jul 2024 15:51:08 -1000 Subject: [PATCH] `cargo watch` should ignore .cargo and target dirs Co-authored-by: Zeek --- bin/run | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/run b/bin/run index f22505e..f04158a 100755 --- a/bin/run +++ b/bin/run @@ -48,11 +48,11 @@ checks () { } test_watch () { - shell cargo watch -- bin/run test + shell cargo watch --ignore target --ignore .cargo -- bin/run test } test_watch_clear () { - shell cargo watch --clear -- bin/run test + shell cargo watch --ignore target --ignore .cargo --clear -- bin/run test } test () { @@ -64,11 +64,11 @@ test_metal () { } build_watch () { - shell cargo watch -- bin/run build + shell cargo watch --ignore target --ignore .cargo -- bin/run build } build_watch_clear () { - shell cargo watch --clear -- bin/run build + shell cargo watch --ignore target --ignore .cargo --clear -- bin/run build } build () { @@ -95,7 +95,7 @@ clippy () { } clippy_watch () { - shell cargo watch --clear -- bin/run clippy + shell cargo watch --ignore target --ignore .cargo --clear -- bin/run clippy } format () {