diagnosticism 0.3.1

Miscellaneous discrete and simple diagnostics facilities (for Rust)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/env bash
set -euo pipefail

RUSTFMT="$(rustup which --toolchain nightly rustfmt 2>/dev/null || true)"
if [[ -z "${RUSTFMT}" ]]; then
	echo "error: nightly rustfmt is required (see rustfmt.toml)" >&2
	echo "  rustup component add rustfmt --toolchain nightly" >&2
	exit 1
fi

export RUSTFMT
exec cargo fmt -- --unstable-features "$@"