actix_failwrap 1.0.1

A micro-package that enables ergonomic error propagation (using thiserror) inside actix-web route handlers.
Documentation
.ONESHELL:
SHELL := /bin/bash

.SILENT: test_code
.SILENT: test_format
.SILENT: coverage

test_code:
	cargo test -- --nocapture --color=always

test_format:
	cargo +nightly fmt --all -- --check

coverage:
	coverage=$$(cargo llvm-cov -- --nocapture | grep '^TOTAL' | awk '{print $$10}');
	
	if [ -z "$$coverage" ]
	then
		echo "Tests failed.";
		exit 1;
	fi

	echo "coverage=$$coverage";

ifdef export
	if [ "$(export)" = "_" ]; then
		EXPORT_PATH="./coverage.lcov";
	else
		EXPORT_PATH="$(export)";
	fi;

	cargo llvm-cov --lcov -- --nocapture --color=always > $$EXPORT_PATH 2>/dev/null;
	echo "export_path=$$EXPORT_PATH" >&2
endif