-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (51 loc) · 1.42 KB
/
justfile
File metadata and controls
68 lines (51 loc) · 1.42 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
63
64
65
66
67
68
format:
cargo fmt
alias fmt := format
# Lint AND fix
lint:
cargo clippy --fix --allow-dirty
compile:
cargo check
# Overall code quality check
check: format lint compile test
# Finds comments
find-comments:
rg -n --pcre2 '^\s*//(?![!/])' -g '*.rs'
alias cmt := find-comments
test:
cargo test --quiet
# Run all tests including integration tests
test-all:
cargo test --all-features --quiet
# Run integration tests only
test-integration:
cargo test --all-features --quiet -- --test-threads=1 integration
# Run benchmarks
bench:
cargo bench
# Run benchmarks with baseline comparison
bench-compare baseline="main":
cargo bench -- --baseline {{baseline}}
# Generate shell completion scripts
completions:
#!/usr/bin/env bash
set -e
mkdir -p completions
cargo run --release -- --completions bash > completions/lectito.bash
cargo run --release -- --completions zsh > completions/_lectito
cargo run --release -- --completions fish > completions/lectito.fish
cargo run --release -- --completions powershell > completions/lectito.ps1
echo "Completions generated in completions/"
# Build mdbook documentation
docs-build:
mdbook build docs/
# Serve documentation locally (opens browser)
docs-serve:
mdbook serve docs/ --open
# Serve documentation without opening browser
docs:
mdbook serve docs/
# Test mdbook code examples
docs-test:
mdbook test docs/
alias doc := docs