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
cargo $subcommand $release --features tinyvec_string
cargo $subcommand $release --no-default-features --features tinyvec_string,alloc
cargo $subcommand $release --all-features
done
done
RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo +nightly doc --all-features --no-deps