.PHONY: help
help:
@echo 'Available `make` commands:' >/dev/stderr
@echo >/dev/stderr
@awk -F'#' '/^[a-z][A-Za-z0-9]+/ {if (NF > 1) { sub(/:[^#]*/, ""); print $$1 "\t\t" $$2}}' Makefile
.PHONY: watch
watch:
cargo watch -x check -x "test --all-features" --clear
.PHONY: test
test:
cargo test --all-features
.PHONY: fuzz
fuzz:
cargo +nightly fuzz run parse_command
.PHONY: run
run: debug
RUST_LOG=INFO ./target/debug/examples/basic
.PHONY: doc
doc:
cargo doc --open
.PHONY: debug
debug:
cargo build
.PHONY: build
build:
cargo build --release