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 d1039da commit 47e3577Copy full SHA for 47e3577
.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