/
Makefile
30 lines (21 loc) · 670 Bytes
/
Makefile
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
.PHONY: all check clean
all: build
check: fmt test clippy
test:
(command -v cargo-nextest && cargo nextest run --all-features --workspace) || cargo test --all-features --workspace
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets --tests -- -D warnings
clean:
cargo clean
build:
cargo build --release
build-linux-server:
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
rustup target add aarch64-unknown-linux-musl
cargo build --release --target aarch64-unknown-linux-musl
build-ios:
rustup target add aarch64-apple-ios
cargo build --release --target aarch64-apple-ios