-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
36 lines (30 loc) · 743 Bytes
/
justfile
File metadata and controls
36 lines (30 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# build release binary
build:
cargo build --release
# remove test databases
drop-test-dbs:
./drop_test_dbs.sh
# move tag to current commit
move-tag TAG:
# remove local tag
git tag --delete {{TAG}}
# remove tag from remote
git push --delete origin {{TAG}}
# make new tag
git tag {{TAG}}
# push commits to remote
git push
# push new tag to remote
git push origin {{TAG}}
# format Rust project
format:
cargo +nightly --locked fmt --all # use nightly toolchain for better import handling
# lint Rust project
lint:
cargo clippy --all-targets --all-features
# run all migrations
migrate:
sqlx migrate run
# update sqlx query data
query-data:
cargo sqlx prepare -- --all-targets