代码拉取完成,页面将自动刷新
CARGO=RUSTFLAGS='-F warnings -A deprecated' cargo
.PHONY: debug release test test-release bench fmt cov clean clippy security_audit
debug:
$(CARGO) build -j 1 --all
scripts/release.sh x86 debug
release:
$(CARGO) build -j 1 --all --release
scripts/release.sh x86 release
aarch64_debug:
$(CARGO) build --all --target aarch64-unknown-linux-gnu
scripts/release.sh aarch64 debug
aarch64_release:
$(CARGO) build --all --release --target aarch64-unknown-linux-gnu
scripts/release.sh aarch64 release
test:
RUST_BACKTRACE=full $(CARGO) test -j 1 --all 2>&1
test-release:
RUST_BACKTRACE=full $(CARGO) test -j 1 --release --all
bench:
-rm target/bench.log
cargo bench --all --no-run |tee target/bench.log
cargo bench --all --jobs 1 |tee -a target/bench.log
fmt:
cargo fmt --all -- --check
cov:
cargo cov test --all
cargo cov report --open
clean:
rm -rf target/debug/
rm -rf target/release/
clippy:
$(CARGO) clippy -j 1 --all
# use cargo-audit to audit Cargo.lock for crates with security vulnerabilities
# expecting to see "Success No vulnerable packages found"
security_audit:
scripts/security_audit.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。