diff options
Diffstat (limited to 'pre-commit.sh')
-rwxr-xr-x | pre-commit.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pre-commit.sh b/pre-commit.sh index bcffdca..603bc0f 100755 --- a/pre-commit.sh +++ b/pre-commit.sh @@ -1,4 +1,7 @@ #!/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 git add -u || exit 1 |