#!/bin/sh
exec 1>&2
set -xe
# XXX: after https://github.com/rust-lang/rust/issues/54726 (stabilisation of
# custom inner attributes), use #![rustfmt::skip] on log.rs
cargo +nightly fmt --check -- $(find src/ -name \*.rs -not -name log.rs)
cargo clippy --no-deps -- -Dwarnings
PYTHONPATH=. cargo test -F mod-example
cargo doc --no-deps --lib