-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
41 lines (34 loc) · 1.12 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
.EXPORT_ALL_VARIABLES:
RUST_BACKTRACE=1
build:
cargo build --all-features
# Run all tests and examples
test:
cargo test --tests --examples --all-features
# Run all tests with and without all features
test-ci:
cargo test --tests --examples --no-default-features
cargo test --tests --examples --all-features
make -C examples/python-sqlalchemy test-ci
# Run clippy
lint:
cargo clippy --no-deps --all-targets --all-features -- -W clippy::pedantic \
-D missing-docs \
-A clippy::let-unit-value \
-A clippy::wildcard-imports \
-A clippy::module-name-repetitions \
-A clippy::uninlined-format-args \
-A clippy::must-use-candidate \
-A clippy::doc-markdown \
-A clippy::missing-panics-doc \
-A clippy::new-without-default \
-A clippy::expect-fun-call
# Generate docs
doc:
RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps
# Compute test coverage for CI with llvm-cov
coverage-ci:
cargo llvm-cov --tests --examples --all-targets --all-features --workspace --lcov --output-path lcov.info
# Compute test coverage with HTML output
coverage:
cargo llvm-cov --tests --examples --all-targets --all-features --workspace --html