/ Makefile
Makefile
 1  .PHONY: help build check test fmt fmt-check lint example clean
 2  
 3  help:
 4  	@printf "Targets:\n"
 5  	@printf "  build       Build the crate\n"
 6  	@printf "  check       Type-check the crate\n"
 7  	@printf "  test        Run tests (requires Redis at redis://127.0.0.1/)\n"
 8  	@printf "  fmt         Format code with rustfmt\n"
 9  	@printf "  fmt-check   Check formatting without modifying files\n"
10  	@printf "  lint        Run clippy (if installed)\n"
11  	@printf "  example     Run the async Redis example\n"
12  	@printf "  clean       Remove build artifacts\n"
13  
14  build:
15  	cargo build
16  
17  check:
18  	cargo check
19  
20  test:
21  	cargo test
22  
23  fmt:
24  	cargo fmt
25  
26  fmt-check:
27  	cargo fmt -- --check
28  
29  lint:
30  	cargo clippy --all-targets --all-features -- -D warnings
31  
32  example:
33  	cargo run --example redis_async
34  
35  clean:
36  	cargo clean