Skip to content

Commit

Permalink
Also run cargo sweep for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
GMadorell committed Nov 28, 2024
1 parent b5253d8 commit 6f6bd44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ function setup_rust() {
if [ ! -d "$CARGO_TARGET_DIR" ]; then
mkdir -p "$CARGO_TARGET_DIR"
fi

# Run cargo sweep in the background
if command -v cargo-sweep >/dev/null 2>&1; then
echo "$LOG_INFO Running cargo sweep in the background..."
nohup cargo sweep -s "$CARGO_TARGET_DIR" >/dev/null 2>&1 &
else
echo "$LOG_WARNING 'cargo-sweep' is not installed. Skipping cleanup."
fi
}

if (($RUST_MODE)); then
Expand Down

0 comments on commit 6f6bd44

Please sign in to comment.