Skip to content

Commit

Permalink
feat: Add script to run cargo clean
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Apr 18, 2024
1 parent d8a5d33 commit b1b1522
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/cargo/check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set -e

(cd svc && cargo check --workspace)
(cd lib/bolt && cargo check --workspace)
(cd lib/convert && cargo check --workspace)
(cd lib/util && cargo check --workspace)
13 changes: 13 additions & 0 deletions scripts/cargo/fix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set -e

# Clean svc and libs
(cd svc && cargo fix --workspace --allow-dirty)
(cd lib/bolt && cargo fix --workspace --allow-dirty)
(cd lib/convert && cargo fix --workspace --allow-dirty)
(cd lib/util && cargo fix --workspace --allow-dirty)

# Format svc and libs
(cd svc && cargo fmt)
(cd lib/bolt && cargo fmt)
(cd lib/convert && cargo fmt)
(cd lib/util && cargo fmt)
File renamed without changes.

0 comments on commit b1b1522

Please sign in to comment.