move the flatten-serde-json crate inside of milli

This commit is contained in:
Tamo 2022-04-07 18:20:44 +02:00
parent ab458d8840
commit bab898ce86
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
8 changed files with 479 additions and 2 deletions

View file

@ -0,0 +1,26 @@
[package]
name = "flatten_serde_json-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
edition = "2018"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.4"
arbitrary-json = "0.1.1"
[dependencies.flatten_serde_json]
path = ".."
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]]
name = "flatten"
path = "fuzz_targets/flatten.rs"
test = false
doc = false

View file

@ -0,0 +1,8 @@
#![no_main]
use arbitrary_json::ArbitraryObject;
use flatten_serde_json::flatten;
use libfuzzer_sys::fuzz_target;
fuzz_target!(|object: ArbitraryObject| {
let _ = flatten(&object);
});