Remove unused crates from dependencies (#2018)

* Remove unused crates from dependencies

* Revert rand to columnar

* Revert criterion to stacker
This commit is contained in:
tottoto
2023-05-02 19:34:20 +09:00
committed by GitHub
parent ba309e18a1
commit 73452284ae
4 changed files with 5 additions and 11 deletions

View File

@@ -54,7 +54,6 @@ itertools = "0.10.3"
measure_time = "0.8.2"
async-trait = "0.1.53"
arc-swap = "1.5.0"
futures = "0.3.28"
columnar = { version="0.1", path="./columnar", package ="tantivy-columnar" }
sstable = { version="0.1", path="./sstable", package ="tantivy-sstable", optional = true }
@@ -64,6 +63,7 @@ tantivy-bitpacker = { version= "0.3", path="./bitpacker" }
common = { version= "0.5", path = "./common/", package = "tantivy-common" }
tokenizer-api = { version="0.1", path="./tokenizer-api", package="tantivy-tokenizer-api" }
sketches-ddsketch = { version = "0.2.1", features = ["use_serde"] }
futures-util = { version = "0.3.28", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = "0.3.9"
@@ -109,7 +109,7 @@ zstd-compression = ["zstd"]
failpoints = ["fail/failpoints"]
unstable = [] # useful for benches.
quickwit = ["sstable"]
quickwit = ["sstable", "futures-util"]
[workspace]
members = ["query-grammar", "bitpacker", "common", "ownedbytes", "stacker", "sstable", "tokenizer-api", "columnar"]
@@ -133,4 +133,3 @@ harness = false
[[bench]]
name = "index-bench"
harness = false

View File

@@ -6,12 +6,8 @@ license = "MIT"
[dependencies]
itertools = "0.10.5"
log = "0.4.17"
fnv = "1.0.7"
fastdivide = "0.4.0"
rand = { version = "0.8.5", optional = true }
measure_time = { version = "0.8.2", optional = true }
prettytable-rs = { version = "0.10.0", optional = true }
stacker = { path = "../stacker", package="tantivy-stacker"}
sstable = { path = "../sstable", package = "tantivy-sstable" }
@@ -22,7 +18,7 @@ serde = "1.0.152"
[dev-dependencies]
proptest = "1"
more-asserts = "0.3.1"
rand = "0.8.5"
rand = "0.8"
[features]
unstable = []

View File

@@ -220,7 +220,7 @@ impl InvertedIndexReader {
let positions = self
.positions_file_slice
.read_bytes_slice_async(term_info.positions_range.clone());
futures::future::try_join(postings, positions).await?;
futures_util::future::try_join(postings, positions).await?;
} else {
postings.await?;
}

View File

@@ -7,7 +7,6 @@ license = "MIT"
[dependencies]
murmurhash32 = "0.3"
common = { version = "0.5", path = "../common/", package = "tantivy-common" }
criterion = "0.4.0"
[[bench]]
harness = false
@@ -21,4 +20,4 @@ path = "example/hashmap.rs"
[dev-dependencies]
rand = "0.8.5"
zipf = "7.0.0"
criterion = "0.4.0"