| 1 | all: test |
| 2 | |
| 3 | check: |
| 4 | @cargo check --lib --all-features |
| 5 | |
| 6 | build: |
| 7 | @cargo build --all-features |
| 8 | |
| 9 | doc: |
| 10 | @cargo doc --all-features |
| 11 | |
| 12 | test: |
| 13 | @echo "CARGO TESTS" |
| 14 | @cargo test |
| 15 | @cargo test --all-features |
| 16 | @cargo test --no-default-features |
| 17 | |
| 18 | check-minver: |
| 19 | @echo "MINVER CHECK" |
| 20 | @cargo minimal-versions check --lib |
| 21 | @cargo minimal-versions check --lib --all-features |
| 22 | @cargo minimal-versions check --lib --no-default-features |
| 23 | |
| 24 | format: |
| 25 | @rustup component add rustfmt 2> /dev/null |
| 26 | @cargo fmt --all |
| 27 | |
| 28 | format-check: |
| 29 | @rustup component add rustfmt 2> /dev/null |
| 30 | @cargo fmt --all -- --check |
| 31 | |
| 32 | lint: |
| 33 | @rustup component add clippy 2> /dev/null |
| 34 | @cargo clippy --examples --tests --all-features -- --deny warnings |
| 35 | |
| 36 | .PHONY: all doc build check test format format-check lint check-minver msrv-lock |