代码拉取完成,页面将自动刷新
lint:
typos
cargo clippy --all-targets --all -- --deny=warnings
lint-full:
typos
cargo clippy --features=full --all-targets --all -- --deny=warnings
fmt:
cargo fmt --all
build-web:
rm -rf dist \
&& cd web \
&& npm install && npm run build \
&& cp -rf dist ../
# update-shadcn:
# 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 bacon run -- -- -c=~/tmp/pingap?separation --admin=pingap:123123@127.0.0.1:3018 --autoreload
devetcd:
RUST_LOG=INFO bacon run -- -- -c="etcd://127.0.0.1:2379/pingap?timeout=10s&connect_timeout=5s" --admin=127.0.0.1:3018 --autoreload
mermaid:
cargo run --bin generate-mermaid
udeps:
cargo +nightly udeps
msrv:
cargo msrv list
bloat:
cargo bloat --release --crates
outdated:
cargo outdated
unused-features:
unused-features analyze
test:
cargo test --workspace --features=full
cov:
cargo llvm-cov --workspace --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
release-perf:
cargo build --profile=release-perf --features=perf
ls -lh target/release-perf
release-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 v0.11.0 --prepend CHANGELOG.md
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。