1#!/bin/bash
2# Ensure formatting and clippy is done on nightly.
3
4set -e
5
6# Change to our project home.
7script_dir=`dirname "${BASH_SOURCE[0]}"`
8cd "$script_dir"/..
9
10# Make sure we error on warnings, and don't format in-place.
11
12# Do the formatting and clippy for all our project workspaces.
13cargo +nightly fmt -- --check
14cargo +nightly clippy --no-default-features -- --deny warnings
15cargo +nightly clippy --features=compact -- --deny warnings
16cargo +nightly clippy --features=alloc -- --deny warnings
17
18