610: Share heed between all sub-crates r=Kerollmops a=irevoire

# Pull Request

## What does this PR do?
Use the reexported version of heed in the benchmarks and the fuzzer

Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
bors[bot] 2022-08-22 08:44:31 +00:00 committed by GitHub
commit b46225070f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,6 @@ serde_json = { version = "1.0.79", features = ["preserve_order"] }
[dev-dependencies] [dev-dependencies]
criterion = { version = "0.3.5", features = ["html_reports"] } criterion = { version = "0.3.5", features = ["html_reports"] }
heed = { git = "https://github.com/meilisearch/heed", tag = "v0.12.1" }
rand = "0.8.5" rand = "0.8.5"
rand_chacha = "0.3.1" rand_chacha = "0.3.1"
roaring = "0.9.0" roaring = "0.9.0"

View File

@ -11,7 +11,6 @@ cargo-fuzz = true
[dependencies] [dependencies]
arbitrary = "1.0" arbitrary = "1.0"
libfuzzer-sys = "0.4" libfuzzer-sys = "0.4"
heed = { git = "https://github.com/meilisearch/heed", tag = "v0.12.1" }
serde_json = { version = "1.0.62", features = ["preserve_order"] } serde_json = { version = "1.0.62", features = ["preserve_order"] }
anyhow = "1.0" anyhow = "1.0"
tempfile = "3.3" tempfile = "3.3"

View File

@ -5,11 +5,11 @@ use std::io::{BufWriter, Cursor, Read, Seek, Write};
use anyhow::{bail, Result}; use anyhow::{bail, Result};
use arbitrary_json::ArbitraryValue; use arbitrary_json::ArbitraryValue;
use heed::EnvOpenOptions;
use libfuzzer_sys::fuzz_target; use libfuzzer_sys::fuzz_target;
use milli::documents::{DocumentsBatchBuilder, DocumentsBatchReader}; use milli::documents::{DocumentsBatchBuilder, DocumentsBatchReader};
use milli::heed::EnvOpenOptions;
use milli::update::{IndexDocuments, IndexDocumentsConfig, IndexerConfig, Settings}; use milli::update::{IndexDocuments, IndexDocumentsConfig, IndexerConfig, Settings};
use milli::Index; use milli::{Index, Object};
use serde_json::{Map, Value}; use serde_json::{Map, Value};
#[global_allocator] #[global_allocator]