forked from redis-rs/redis-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 2.08 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
42
43
44
45
46
47
48
49
50
51
52
53
54
build:
@cargo build
test:
@echo "===================================================================="
@echo "Testing Connection Type TCP without features"
@echo "===================================================================="
@REDISRS_SERVER_TYPE=tcp cargo test --no-default-features --tests -- --nocapture --test-threads=1
@echo "===================================================================="
@echo "Testing Connection Type TCP with all features"
@echo "===================================================================="
@REDISRS_SERVER_TYPE=tcp cargo test --all-features -- --nocapture --test-threads=1
@echo "===================================================================="
@echo "Testing Connection Type TCP with all features and TLS support"
@echo "===================================================================="
@REDISRS_SERVER_TYPE=tcp+tls cargo test --all-features -- --nocapture --test-threads=1
@echo "===================================================================="
@echo "Testing Connection Type UNIX"
@echo "===================================================================="
@REDISRS_SERVER_TYPE=unix cargo test --test parser --test test_basic --test test_types --all-features -- --test-threads=1
@echo "===================================================================="
@echo "Testing Connection Type UNIX SOCKETS"
@echo "===================================================================="
@REDISRS_SERVER_TYPE=unix cargo test --all-features -- --skip test_cluster
test-single: test
bench:
cargo bench --all-features
docs:
@RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps
upload-docs: docs
@./upload-docs.sh
style-check:
@rustup component add rustfmt 2> /dev/null
cargo fmt --all -- --check
lint:
@rustup component add clippy 2> /dev/null
cargo clippy --all-features --all --tests --examples -- -D clippy::all -D warnings
fuzz:
cd afl/parser/ && \
cargo afl build --bin fuzz-target && \
cargo afl fuzz -i in -o out target/debug/fuzz-target
.PHONY: build test bench docs upload-docs style-check lint fuzz