mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 08:11:04 +00:00
move the flatten-serde-json crate inside of milli
This commit is contained in:
26
flatten-serde-json/fuzz/Cargo.toml
Normal file
26
flatten-serde-json/fuzz/Cargo.toml
Normal 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
|
8
flatten-serde-json/fuzz/fuzz_targets/flatten.rs
Normal file
8
flatten-serde-json/fuzz/fuzz_targets/flatten.rs
Normal 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);
|
||||
});
|
Reference in New Issue
Block a user