export RUST_BACKTRACE := 1
all:
$(MAKE) fmt
$(MAKE) clippy ARGS="--features local-tdlib"
$(MAKE) test ARGS="--features local-tdlib"
run_local:
cargo run --no-default-features --features local-tdlib
build_local:
cargo build --no-default-features --features local-tdlib
build:
cargo build --no-default-features $(ARGS)
run:
cargo run --no-default-features $(ARGS)
test:
cargo test --no-default-features $(ARGS) -- --nocapture --test-threads=1
clippy:
cargo clippy --no-default-features --all-targets $(ARGS) -- -D warnings
fmt:
cargo fmt --all
cargo fmt --all -- --check
clean:
cargo clean
help:
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@echo " all @echo " build @echo " run @echo " test @echo " clippy @echo " fmt @echo " clean @echo " help
.PHONY: build run test clean