-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathjustfile
34 lines (24 loc) · 881 Bytes
/
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
# Load environment variables from .env file
set dotenv-load := true
# Define a variable that holds the feature flag if USE_VENDOR_FEATURE is set
FEATURE_FLAG := if env('USE_VENDOR_FEATURE', '0') == "1" { "--features vendored" } else { "" }
run:
cd harbor-ui && RUST_LOG=harbor=debug,iced_wgpu=error,wgpu_core=error,info cargo run {{FEATURE_FLAG}}
watch:
cd harbor-ui && RUST_LOG=harbor=debug,iced_wgpu=error,wgpu_core=error,info cargo watch -x "run {{FEATURE_FLAG}}"
test:
cargo test {{FEATURE_FLAG}}
release:
cargo run --release {{FEATURE_FLAG}}
format-check:
cargo fmt --all -- --check
format:
cargo fmt --all
clippy:
cargo clippy {{FEATURE_FLAG}} --tests -- -D warnings
ci:
cargo fmt --all -- --check
cargo clippy {{FEATURE_FLAG}} --tests -- -D warnings
cargo test {{FEATURE_FLAG}}
clear-signet:
rm -rf ~/.harbor/signet