Add RUSTFLAGS="-D warnings" to 'just build'
This will cause 'just build' to fail on compiler warnings.
@@ -39,15 +39,15 @@ build:
do
cmd="cargo build --tests --manifest-path=$crate/Cargo.toml $BUILD_MODE $feature"
echo "\033[1m$cmd\033[0m"
- $cmd
+ RUSTFLAGS="-D warnings" $cmd
done
done
cmd="cargo build --tests --manifest-path=libtransact/Cargo.toml --features=sawtooth-compat"
echo "\033[1m$cmd\033[0m"
- $cmd
+ RUSTFLAGS="-D warnings" $cmd
cmd="cargo build --tests --manifest-path=libtransact/Cargo.toml --features=experimental,state-merkle-sql-postgres-tests"
echo "\033[1m$cmd\033[0m"
- $cmd
+ RUSTFLAGS="-D warnings" $cmd
echo "\n\033[92mBuild Success\033[0m\n"
ci:
