We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbd8b7 commit 8342ddbCopy full SHA for 8342ddb
.husky/pre-push
@@ -1,5 +1,8 @@
1
#!/bin/sh
2
3
+target=$(rustc -vV | awk '/^host/ { print $2 }' | tr '[:lower:]' '[:upper:]' | tr '-' '_')
4
+export CARGO_TARGET_${target}_RUSTFLAGS='-D warnings'
5
+
6
if ! command -v cargo-make >/dev/null 2>&1; then
7
echo "cargo-make is not installed. Install it with:"
8
echo " cargo install cargo-make"
0 commit comments