-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (27 loc) · 1013 Bytes
/
Copy pathjustfile
File metadata and controls
35 lines (27 loc) · 1013 Bytes
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
default:
just --list --list-submodules
check: check-format check-clippy check-test check-doc check-features
check-format:
cargo fmt --all -- --check
check-clippy:
cargo clippy --workspace --all-targets -- -D warnings
check-test:
cargo hack test --feature-powerset
check-doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
check-nats model="test" url="nats://127.0.0.1:4222":
OPENAI_API_DEFAULT_MODEL="{{ model }}" OPENAI_API_NATS_URL="{{ url }}" \
cargo test --features nats-queue nats -- --ignored
check-openai model="test" url="http://127.0.0.1:8000/v1":
OPENAI_API_DEFAULT_MODEL="{{ model }}" OPENAI_API_URL="{{ url }}" \
cargo test openai -- --ignored
check-features:
RUSTFLAGS="-D warnings" cargo check --all-targets
RUSTFLAGS="-D warnings" cargo hack check \
--feature-powerset \
--no-dev-deps
RUSTFLAGS="-D warnings" cargo hack check \
--target thumbv7em-none-eabi \
--feature-powerset \
--exclude-features std,default,nats-queue \
--no-dev-deps