-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
22 lines (18 loc) · 894 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
precommit:
cargo fmt --all -- --config format_code_in_doc_comments=true
cargo clippy -p negentropy && cargo clippy -p negentropy --no-default-features
cargo test -p negentropy && cargo test -p negentropy --no-default-features
cargo clippy -p harness && cargo clippy -p harness --no-default-features
cargo test -p harness && cargo test -p harness --no-default-features
cargo clippy -p perf && cargo clippy -p perf --no-default-features
cargo test -p perf && cargo test -p perf --no-default-features
cd ./negentropy-ffi && make precommit
bench:
RUSTFLAGS='--cfg=bench' cargo +nightly bench -p negentropy
graph:
@cargo flamegraph --version || cargo install flamegraph
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -p perf -o flamegraph.svg
clean:
cargo clean
loc:
@echo "--- Counting lines of .rs files (LOC):" && find negentropy* -type f -name "*.rs" -exec cat {} \; | wc -l