From dec0e8125f5c106418c01a280a063e79869a1796 Mon Sep 17 00:00:00 2001
From: Yuri Astrakhan <YuriAstrakhan@gmail.com>
Date: Thu, 8 Feb 2024 04:07:03 -0500
Subject: [PATCH] Move fuzz into workspace

---
 Cargo.lock      | 26 ++++++++++++++++++++++++++
 Cargo.toml      |  1 +
 fuzz/Cargo.toml |  2 --
 3 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 5245a514..71cacae1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -839,6 +839,17 @@ version = "0.2.153"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
 
+[[package]]
+name = "libfuzzer-sys"
+version = "0.4.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a96cfd5557eb82f2b83fed4955246c988d331975a002961b07c81584d107e7f7"
+dependencies = [
+ "arbitrary",
+ "cc",
+ "once_cell",
+]
+
 [[package]]
 name = "libloading"
 version = "0.8.1"
@@ -1090,6 +1101,21 @@ dependencies = [
  "url",
 ]
 
+[[package]]
+name = "oxigraph-fuzz"
+version = "0.0.0"
+dependencies = [
+ "anyhow",
+ "libfuzzer-sys",
+ "oxigraph",
+ "oxrdf",
+ "oxrdfxml",
+ "oxttl",
+ "sparesults",
+ "spargebra",
+ "sparql-smith",
+]
+
 [[package]]
 name = "oxigraph-js"
 version = "0.4.0-alpha.3-dev"
diff --git a/Cargo.toml b/Cargo.toml
index 7cbc711b..29f87a7e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,7 @@
 [workspace]
 members = [
     "cli",
+    "fuzz",
     "js",
     "lib/oxigraph",
     "lib/oxrdf",
diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml
index 8ce8daf3..91dfef22 100644
--- a/fuzz/Cargo.toml
+++ b/fuzz/Cargo.toml
@@ -22,8 +22,6 @@ sparql-smith = { path = "../lib/sparql-smith", features = ["sep-0006"] }
 codegen-units = 1
 debug = true
 
-[workspace]
-
 [[bin]]
 name = "nquads"
 path = "fuzz_targets/nquads.rs"