From be11c917b4e2ce01fd74ffa39d9870be449f4496 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 11 May 2020 10:57:13 -0700 Subject: [PATCH] Touch up PR 668 --- fuzz/.gitignore | 7 +++---- fuzz/Cargo.toml | 12 ++++-------- fuzz/fuzz_targets/from_slice.rs | 1 + 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/fuzz/.gitignore b/fuzz/.gitignore index 572e03b..188f196 100644 --- a/fuzz/.gitignore +++ b/fuzz/.gitignore @@ -1,4 +1,3 @@ - -target -corpus -artifacts +artifacts/ +corpus/ +target/ diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 95af1dd..4823b07 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,4 +1,3 @@ - [package] name = "serde_json-fuzz" version = "0.0.0" @@ -11,14 +10,11 @@ cargo-fuzz = true [dependencies] libfuzzer-sys = "0.3" - -[dependencies.serde_json] -path = ".." - -# Prevent this from interfering with workspaces -[workspace] -members = ["."] +serde_json = { path = ".." } [[bin]] name = "from_slice" path = "fuzz_targets/from_slice.rs" + +# Prevent this from interfering with workspaces +[workspace] diff --git a/fuzz/fuzz_targets/from_slice.rs b/fuzz/fuzz_targets/from_slice.rs index 8381377..e071faf 100644 --- a/fuzz/fuzz_targets/from_slice.rs +++ b/fuzz/fuzz_targets/from_slice.rs @@ -1,4 +1,5 @@ #![no_main] + use libfuzzer_sys::fuzz_target; use serde_json::{from_slice, Value};