-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
72 lines (57 loc) · 1.42 KB
/
justfile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
# list available commands
list:
just -l
# run with debug logs and backtraces
[linux]
dev:
__NV_PRIME_RENDER_OFFLOAD=1 \
cargo run -- --debug
# run with debug logs and backtraces
[windows]
dev:
cargo run -- --debug
# run all tests once
test:
cargo test --all
# run all tests continuously
test-watch:
bacon test -- --all
# run in release mode
[linux]
run:
__NV_PRIME_RENDER_OFFLOAD=1 \
cargo run --release
# run in release mode
[windows]
run:
cargo run --release
# delete the database and image cache
reset: remove-db remove-cache
# delete the sqlite database
[linux]
remove-db:
rm $HOME/.local/share/clef/db.sqlite*
# delete the sqlite database
[windows]
remove-db:
rm $HOME\AppData\Local\Clef\data\db.sqlite*
# delete the cache of resized images
[linux]
remove-cache:
rm -rf $HOME/.local/share/clef/resized_images
# delete the cache of resized images
[windows]
remove-cache:
rm $HOME\AppData\Local\Clef\data\resized_images\*
# NOTE
# 'unused' depends on cargo-udeps and rust nightly:
# cargo install cargo-udeps --locked
# rustup install nightly
# check for unused dependencies
unused:
cargo +nightly udeps --all-targets --workspace
# NOTE re: __NV_PRIME_RENDER_OFFLOAD=1
# this is specific to my machine;
# it ensures pop os uses the gpu while in hybrid mode
# https://support.system76.com/articles/graphics-switch-pop/