forked from foyer-rs/foyer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (59 loc) · 2.1 KB
/
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
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
69
70
71
72
73
74
SHELL := /bin/bash
.PHONY: deps check test test-ignored test-all all fast monitor clear madsim example msrv udeps ffmt
deps:
./scripts/install-deps.sh
check:
typos
shellcheck ./scripts/*
./scripts/minimize-dashboards.sh
cargo sort -w
cargo fmt --all
cargo clippy --all-targets
check-all:
shellcheck ./scripts/*
./scripts/minimize-dashboards.sh
cargo sort -w
cargo fmt --all
cargo clippy --all-targets --features deadlock
cargo clippy --all-targets --features tokio-console
cargo clippy --all-targets --features sanity
cargo clippy --all-targets --features tracing
cargo clippy --all-targets
test:
RUST_BACKTRACE=1 cargo nextest run --all --features "strict_assertions,sanity"
RUST_BACKTRACE=1 cargo test --doc
test-ignored:
RUST_BACKTRACE=1 cargo nextest run --run-ignored ignored-only --no-capture --workspace --features "strict_assertions,sanity"
test-all: test test-ignored
madsim:
RUSTFLAGS="--cfg madsim --cfg tokio_unstable" cargo clippy --all-targets
RUSTFLAGS="--cfg madsim --cfg tokio_unstable" RUST_BACKTRACE=1 cargo nextest run --all --features "strict_assertions,sanity"
example:
cargo run --example memory
cargo run --example hybrid
cargo run --example hybrid_full
cargo run --example event_listener
cargo run --features "tracing,jaeger" --example tail_based_tracing
cargo run --features "tracing,ot" --example tail_based_tracing
cargo run --example equivalent
full: check-all test-all example udeps
fast: check test example
msrv:
shellcheck ./scripts/*
./scripts/minimize-dashboards.sh
cargo +1.81.0 sort -w
cargo +1.81.0 fmt --all
cargo +1.81.0 clippy --all-targets --features deadlock
cargo +1.81.0 clippy --all-targets --features tokio-console
cargo +1.81.0 clippy --all-targets
RUST_BACKTRACE=1 cargo +1.81.0 nextest run --all
RUST_BACKTRACE=1 cargo +1.81.0 test --doc
RUST_BACKTRACE=1 cargo +1.81.0 nextest run --run-ignored ignored-only --no-capture --workspace
udeps:
RUSTFLAGS="--cfg tokio_unstable -Awarnings" cargo +nightly-2024-07-19 udeps --all-targets
monitor:
./scripts/monitor.sh
clear:
rm -rf .tmp
ffmt:
cargo +nightly fmt --all -- --config-path rustfmt.nightly.toml