]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Run clippy when CARGO_USE_DEV and CARGO_USE_CLIPPY are set 16565/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 27 Nov 2025 12:25:39 +0000 (13:25 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 27 Nov 2025 13:40:13 +0000 (14:40 +0100)
Adapted from #16557

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-rust-lib/rust/build_recrust

index 24051a6843aded74c7242bd99319f93a384ce8a2..30d607bda7d7cbc20ad4e0406b32ed9645305473 100755 (executable)
@@ -14,6 +14,9 @@ mytarget=${CARGO_TARGET_DIR-target}
 CARGO_PROFILE="--release"
 if [ -n "${CARGO_USE_DEV}" ]; then
     CARGO_PROFILE=""
+    if [ -n "${CARGO_USE_CLIPPY}" ]; then
+        $CARGO clippy --manifest-path $srcdir/Cargo.toml
+    fi
 fi
 
 $CARGO build ${CARGO_PROFILE} $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml