-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
50 lines (38 loc) · 1.02 KB
/
Copy pathJustfile
File metadata and controls
50 lines (38 loc) · 1.02 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
# Justfile for qwen-rust project
# Default recipe
default: build
# Build the project in debug mode
build:
cargo build --workspace
# Build the project in release mode
release:
cargo build --workspace --release
# Build release, sign (macOS ad-hoc), and install to ~/.cargo/bin
install:
cargo build --workspace --release
cp target/release/qcr ~/.cargo/bin/qcr
codesign --sign - --force ~/.cargo/bin/qcr
@echo "✓ qcr installed to ~/.cargo/bin/qcr"
# Run all tests
test:
cargo test --workspace
# Run clippy linter
lint:
cargo clippy --workspace -- -D warnings
# Format code
fmt:
cargo fmt --all
# Check formatting without modifying files
fmt-check:
cargo fmt --all -- --check
# Run all checks (fmt + lint + test)
check: fmt-check lint test
# Clean build artifacts
clean:
cargo clean
# Build and run the CLI in debug mode
run *ARGS:
cargo run --package qwen-cli -- {{ARGS}}
# Build and run the CLI in release mode
run-release *ARGS:
cargo run --release --package qwen-cli -- {{ARGS}}