Set cfg=fuzzing when building fuzz crate in CI
[rust-lightning] / ci / check-compiles.sh
index 177765fb9255fcd45c5d7b76be5f80a64dc8fd08..193c2b4ef1fee74d6dbbdfdaee2c09bb86cc9197 100755 (executable)
@@ -3,4 +3,7 @@ set -e
 set -x
 echo Testing $(git log -1 --oneline)
 cargo check
-cd fuzz && cargo check --features=stdin_fuzz
+cargo doc
+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