forked from vicanso/pingap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (59 loc) · 1.61 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
75
76
77
78
79
80
81
82
83
lint:
cargo clippy --all-targets --all -- --deny=warnings
lint-full:
cargo clippy --features=full --all-targets --all -- --deny=warnings
fmt:
cargo fmt
build-web:
rm -rf dist \
&& cd web \
&& npm install && npm run build \
&& cp -rf dist ../
update-shadcn:
cd web && for file in src/components/ui/*.tsx; do npx shadcn@latest add -y -o $(basename "$file" .tsx); done
bench:
cargo bench
dev:
RUST_LOG=INFO cargo watch -w src -x 'run -- -c=~/github/pingap/conf/pingap.toml'
devtest:
RUST_LOG=INFO cargo watch -w src -x 'run -- -c=~/tmp/pingap?separation --admin=pingap:[email protected]:3018 --autoreload'
devetcd:
RUST_LOG=INFO cargo watch -w src -x 'run -- -c="etcd://127.0.0.1:2379/pingap?timeout=10s&connect_timeout=5s" --admin=127.0.0.1:3018 --autoreload'
udeps:
cargo +nightly udeps
msrv:
cargo msrv list
bloat:
cargo bloat --release --crates
outdated:
cargo outdated
unused-features:
unused-features analyze
test:
cargo test --features=full
cov:
cargo llvm-cov --html --open
release:
cargo build --release
ls -lh target/release
release-full:
cargo build --release --features=full
ls -lh target/release
release-all:
cargo build --release --features=full
mv target/release/pingap target/release/pingap-full
cargo build --release
ls -lh target/release
perf:
cargo build --profile=release-perf --features=perf
ls -lh target/release-perf
pyro:
cargo build --profile=release-perf --features=pyro
ls -lh target/release-perf
publish:
make build-web
cargo publish --registry crates-io --no-verify
hooks:
cp hooks/* .git/hooks/
version:
git cliff --unreleased --tag 0.9.3 --prepend CHANGELOG.md