.PHONY: help all examples simple medium complex integration ci check fmt fmt-check clippy test build doc-test bench test-features clean
help:
@echo "Available targets:"
@echo ""
@echo "CI & Testing:"
@echo " make ci - Full CI check (matches GitHub Actions)"
@echo " make check - Quick check (fmt, clippy, test only)"
@echo " make fmt - Format code"
@echo " make fmt-check - Check code formatting"
@echo " make clippy - Run clippy linter"
@echo " make test - Run tests"
@echo " make test-features - Test all feature combinations"
@echo " make build - Build project"
@echo " make doc-test - Run documentation tests"
@echo " make bench - Run benchmarks"
@echo " make clean - Clean build artifacts"
@echo ""
@echo "Examples:"
@echo " make all - Run all examples"
@echo " make simple - Run simple examples"
@echo " make medium - Run medium complexity examples"
@echo " make complex - Run complex examples"
@echo " make integration - Run integration examples"
@echo " make cloud - Run cloud examples (requires cloud feature)"
@echo ""
@echo "Individual examples:"
@echo " make 01_simple"
@echo " make 02_medium_complexity"
@echo " make 03_complex"
@echo " make integration_with_engine"
@echo " make excelstream_demo"
@echo " make cloud_demo"
@echo " make performance_test"
all: simple medium complex integration
simple:
@echo "=== Running Simple Examples ==="
cargo run --example 01_simple
medium:
@echo "=== Running Medium Complexity Examples ==="
cargo run --example 02_medium_complexity
complex:
@echo "=== Running Complex Examples ==="
cargo run --example 03_complex
integration:
@echo "=== Running Integration Examples ==="
cargo run --example integration_with_engine
cargo run --example excelstream_demo
cloud:
@echo "=== Running Cloud Examples ==="
cargo run --example cloud_demo --features cloud
performance:
@echo "=== Running Performance Test ==="
cargo run --example performance_test --release
ci: fmt-check clippy build test test-features doc-test bench-check
@echo "โ
All CI checks passed!"
test-features:
@echo "๐งช Testing feature combinations..."
@echo " Testing: no features (default)"
@cargo test --no-default-features --lib
@echo " Testing: cloud only"
@cargo test --no-default-features --features cloud --lib
@echo " Testing: all features"
@cargo test --all-features --lib
@echo "โ
All feature combinations passed!"
check: fmt clippy test
@echo "โ
All checks passed!"
fmt:
@echo "๐ง Formatting code..."
@cargo fmt
fmt-check:
@echo "๐ Checking code formatting..."
@cargo fmt -- --check
clippy:
@echo "๐ Running clippy..."
@cargo clippy --all-targets --all-features -- -D warnings
test:
@echo "๐งช Running tests..."
@cargo test --verbose --all-features
build:
@echo "๐จ Building project..."
@cargo build --verbose --all-features
doc-test:
@echo "๐ Running doc tests..."
@cargo test --doc --verbose
bench:
@echo "โก Running benchmarks..."
@cargo bench --verbose
bench-check:
@echo "โก Checking benchmarks compile..."
@cargo bench --no-run --verbose
clean:
@echo "๐งน Cleaning build artifacts..."
@cargo clean
01_simple:
cargo run --example 01_simple
02_medium_complexity:
cargo run --example 02_medium_complexity
03_complex:
cargo run --example 03_complex
integration_with_engine:
cargo run --example integration_with_engine
excelstream_demo:
cargo run --example excelstream_demo
cloud_demo:
cargo run --example cloud_demo --features cloud
performance_test:
cargo run --example performance_test --release