summaryrefslogtreecommitdiff
path: root/pre-commit.sh
blob: 82f7404a45a3d5fdebbe0b85a3dda6a86b278d5c (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
cargo fmt || exit 1
cargo check || exit 1
cargo clippy -- -D warnings || exit 1
# Check that there are no errors with no_std
cargo check --target=wasm32-unknown-unknown --no-default-features || exit 1
cargo test || exit 1
git add -u || exit 1