#!/bin/sh set -e export RUSTFLAGS="-D warnings" export RUSTDOCFLAGS="-D warnings" for release in "" "--release"; do for subcommand in clippy test doc; do cargo $subcommand $release cargo $subcommand $release --no-default-features cargo $subcommand $release --no-default-features --features alloc done done RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo +nightly doc --all-features --no-deps