Set cfg=fuzzing when building fuzz crate in CI
[rust-lightning] / ci / check-compiles.sh
index 45ade5c6a1e1d321f3205f0372d9e548af268bbe..193c2b4ef1fee74d6dbbdfdaee2c09bb86cc9197 100755 (executable)
@@ -4,4 +4,6 @@ set -x
 echo Testing $(git log -1 --oneline)
 cargo check
 cargo doc
-cd fuzz && cargo check --features=stdin_fuzz
+cargo doc --document-private-items
+cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo check --features=stdin_fuzz
+cd ../lightning && cargo check --no-default-features --features=no-std