From e49577a15148c360502504d6a9ea1f5509cd0706 Mon Sep 17 00:00:00 2001
From: Chris Hennick <hennickc@amazon.com>
Date: Mon, 4 Mar 2024 11:48:37 -0800
Subject: [PATCH] Bug fix for fuzzing without default features

---
 .github/workflows/ci.yaml | 4 ++--
 fuzz/Cargo.toml           | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 747d35f7..abbb4281 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -125,7 +125,7 @@ jobs:
       - name: run fuzz
         timeout-minutes: 330
         run: |
-          cargo fuzz run fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000 -dict=fuzz/fuzz.dict
+          cargo fuzz run --no-default-features fuzz_read -- -timeout=10s -jobs=100 -workers=2 -runs=1000000 -max_len=5000000000 -dict=fuzz/fuzz.dict
       - name: Upload any failure inputs
         if: always()
         uses: actions/upload-artifact@v3
@@ -179,7 +179,7 @@ jobs:
       - name: run fuzz
         timeout-minutes: 330
         run: |
-          cargo fuzz run fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=10000 -max_len=5000000000 -dict=fuzz/fuzz.dict
+          cargo fuzz run --no-default-features fuzz_write -- -timeout=10s -jobs=100 -workers=2 -runs=10000 -max_len=5000000000 -dict=fuzz/fuzz.dict
       - name: Upload any failure inputs
         if: always()
         uses: actions/upload-artifact@v3
diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml
index f63ff859..3776e61d 100644
--- a/fuzz/Cargo.toml
+++ b/fuzz/Cargo.toml
@@ -14,6 +14,11 @@ arbitrary = { version = "1.3.0", features = ["derive"] }
 
 [dependencies.zip_next]
 path = ".."
+default-features = false
+
+[features]
+zip_next_defaults = ["zip_next/default"]
+default = ["zip_next_defaults"]
 
 # Prevent this from interfering with workspaces
 [workspace]