-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (36 loc) · 1.15 KB
/
justfile
File metadata and controls
46 lines (36 loc) · 1.15 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
# mozjpeg-rs development tasks
# Run all tests (native)
test:
cargo test -p mozjpeg-rs --lib
cargo test --test codec_comparison
cargo test --test ffi_validation
cargo test --test preset_parity
# Run unit tests only
test-lib:
cargo test -p mozjpeg-rs --lib
# Cross-compile and test for i686 (32-bit x86)
test-i686:
cross build -p mozjpeg-rs --target i686-unknown-linux-gnu
cross test -p mozjpeg-rs --lib --target i686-unknown-linux-gnu
# Cross-compile and test for armv7 (32-bit ARM)
test-armv7:
cross build -p mozjpeg-rs --target armv7-unknown-linux-gnueabihf
cross test -p mozjpeg-rs --lib --target armv7-unknown-linux-gnueabihf
# Cross-compile and test for aarch64 (64-bit ARM)
test-aarch64:
cross build -p mozjpeg-rs --target aarch64-unknown-linux-gnu
cross test -p mozjpeg-rs --lib --target aarch64-unknown-linux-gnu
# Run all cross targets
test-cross: test-i686 test-armv7 test-aarch64
# Build and check (no tests)
check:
cargo check -p mozjpeg-rs
# Clippy lint
clippy:
cargo clippy -p mozjpeg-rs --lib -- -D warnings
# Format check
fmt-check:
cargo fmt --all -- --check
# Format
fmt:
cargo fmt --all