.POSIX:

CARGO = cargo

all:

test:
	$(CARGO) test --release

# This assumes `toml-test` is in $PATH (https://github.com/toml-lang/toml-test)
toml-test:
	$(CARGO) build --release --example toml_test_decoder
	toml-test ./target/release/examples/toml_test_decoder

.PHONY: all test toml-test
