-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
62 lines (48 loc) · 1.11 KB
/
justfile
File metadata and controls
62 lines (48 loc) · 1.11 KB
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
# List available commands
default:
@just --list
# Check code compiles (fast)
check:
cargo check
# Check code compiles with japanese feature
check-jp:
cargo check --features japanese
# Run all lints
lint:
cargo clippy -- -D warnings
# Format code
fmt:
cargo fmt
# Run tests
test:
cargo test
# Full check: fmt, lint, test
ci: fmt lint test
# Build release binary
build:
cargo build --release
# Build release binary with japanese feature
build-jp:
cargo build --release --features japanese
# Build and install local binary
install: build
rm -f ./display-fs
cp target/release/display-fs ./display-fs
@echo "✓ Installed ./display-fs"
# Build and install japanese-enabled binary
install-jp: build-jp
rm -f ./display-fs
cp target/release/display-fs ./display-fs
@echo "✓ Installed ./display-fs (japanese)"
# Run with text
run text="Hello World!":
cargo run -- "{{text}}"
# Detect display
detect:
cargo run -- --detect
# Open docs site in browser
docs-open:
open site/index.html
# Serve docs locally
docs-serve:
python3 -m http.server --directory site 8000