Skip to content

Commit f0a2b1c

Browse files
committed
Bumped tantivy and subcrate versions.
1 parent fcfdc44 commit f0a2b1c

File tree

14 files changed

+27
-29
lines changed

14 files changed

+27
-29
lines changed

Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Paul Masurel <[email protected]>"]
55
license = "MIT"
66
categories = ["database-implementations", "data-structures"]
@@ -33,12 +33,12 @@ num_cpus = "1.13.1"
3333
fs2={ version = "0.4.3", optional = true }
3434
levenshtein_automata = "0.2.1"
3535
uuid = { version = "1.0.0", features = ["v4", "serde"] }
36-
crossbeam = "0.8.1"
36+
crossbeam-channel = "0.5.4"
3737
tantivy-query-grammar = { version="0.18.0", path="./query-grammar" }
38-
tantivy-bitpacker = { version="0.1", path="./bitpacker" }
39-
common = { version = "0.2", path = "./common/", package = "tantivy-common" }
40-
fastfield_codecs = { version="0.1", path="./fastfield_codecs", default-features = false }
41-
ownedbytes = { version="0.2", path="./ownedbytes" }
38+
tantivy-bitpacker = { version="0.2", path="./bitpacker" }
39+
common = { version = "0.3", path = "./common/", package = "tantivy-common" }
40+
fastfield_codecs = { version="0.2", path="./fastfield_codecs", default-features = false }
41+
ownedbytes = { version="0.3", path="./ownedbytes" }
4242
stable_deref_trait = "1.2.0"
4343
rust-stemmers = "1.2.0"
4444
downcast-rs = "1.2.0"

bitpacker/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-bitpacker"
3-
version = "0.1.1"
3+
version = "0.2.0"
44
edition = "2018"
55
authors = ["Paul Masurel <[email protected]>"]
66
license = "MIT"

common/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tantivy-common"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["Paul Masurel <[email protected]>", "Pascal Seitz <[email protected]>"]
55
license = "MIT"
66
edition = "2018"
@@ -10,7 +10,7 @@ description = "common traits and utility functions used by multiple tantivy subc
1010

1111
[dependencies]
1212
byteorder = "1.4.3"
13-
ownedbytes = { version="0.2", path="../ownedbytes" }
13+
ownedbytes = { version="0.3", path="../ownedbytes" }
1414

1515
[dev-dependencies]
1616
proptest = "1.0.0"

fastfield_codecs/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fastfield_codecs"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["Pascal Seitz <[email protected]>"]
55
license = "MIT"
66
edition = "2018"
@@ -9,8 +9,8 @@ description = "Fast field codecs used by tantivy"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
common = { version = "0.2", path = "../common/", package = "tantivy-common" }
13-
tantivy-bitpacker = { version="0.1.1", path = "../bitpacker/" }
12+
common = { version = "0.3", path = "../common/", package = "tantivy-common" }
13+
tantivy-bitpacker = { version="0.2", path = "../bitpacker/" }
1414
prettytable-rs = {version="0.8.0", optional= true}
1515
rand = {version="0.8.3", optional= true}
1616

ownedbytes/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Paul Masurel <[email protected]>", "Pascal Seitz <[email protected]>"]
33
name = "ownedbytes"
4-
version = "0.2.0"
4+
version = "0.3.0"
55
edition = "2018"
66
description = "Expose data as static slice"
77
license = "MIT"

src/core/executor.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crossbeam::channel;
21
use rayon::{ThreadPool, ThreadPoolBuilder};
32

43
use crate::TantivyError;
@@ -52,7 +51,7 @@ impl Executor {
5251
let args: Vec<A> = args.collect();
5352
let num_fruits = args.len();
5453
let fruit_receiver = {
55-
let (fruit_sender, fruit_receiver) = channel::unbounded();
54+
let (fruit_sender, fruit_receiver) = crossbeam_channel::unbounded();
5655
pool.scope(|scope| {
5756
for (idx, arg) in args.into_iter().enumerate() {
5857
// We name references for f and fruit_sender_ref because we do not

src/core/index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ mod tests {
744744
.try_into()?;
745745
assert_eq!(reader.searcher().num_docs(), 0);
746746
writer.add_document(doc!(field=>1u64))?;
747-
let (sender, receiver) = crossbeam::channel::unbounded();
747+
let (sender, receiver) = crossbeam_channel::unbounded();
748748
let _handle = index.directory_mut().watch(WatchCallback::new(move || {
749749
let _ = sender.send(());
750750
}));
@@ -779,7 +779,7 @@ mod tests {
779779
reader: &IndexReader,
780780
) -> crate::Result<()> {
781781
let mut reader_index = reader.index();
782-
let (sender, receiver) = crossbeam::channel::unbounded();
782+
let (sender, receiver) = crossbeam_channel::unbounded();
783783
let _watch_handle = reader_index
784784
.directory_mut()
785785
.watch(WatchCallback::new(move || {

src/directory/file_watcher.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ mod tests {
110110
let tmp_file = tmp_dir.path().join("watched.txt");
111111

112112
let counter: Arc<AtomicUsize> = Default::default();
113-
let (tx, rx) = crossbeam::channel::unbounded();
113+
let (tx, rx) = crossbeam_channel::unbounded();
114114
let timeout = Duration::from_millis(100);
115115

116116
let watcher = FileWatcher::new(&tmp_file);
@@ -153,7 +153,7 @@ mod tests {
153153
let tmp_file = tmp_dir.path().join("watched.txt");
154154

155155
let counter: Arc<AtomicUsize> = Default::default();
156-
let (tx, rx) = crossbeam::channel::unbounded();
156+
let (tx, rx) = crossbeam_channel::unbounded();
157157
let timeout = Duration::from_millis(100);
158158

159159
let watcher = FileWatcher::new(&tmp_file);

src/directory/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn test_directory_delete(directory: &dyn Directory) -> crate::Result<()> {
181181

182182
fn test_watch(directory: &dyn Directory) {
183183
let counter: Arc<AtomicUsize> = Default::default();
184-
let (tx, rx) = crossbeam::channel::unbounded();
184+
let (tx, rx) = crossbeam_channel::unbounded();
185185
let timeout = Duration::from_millis(500);
186186

187187
let handle = directory

src/indexer/index_writer.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::thread;
44
use std::thread::JoinHandle;
55

66
use common::BitSet;
7-
use crossbeam::channel;
87
use smallvec::smallvec;
98

109
use super::operation::{AddOperation, UserOperation};
@@ -289,7 +288,7 @@ impl IndexWriter {
289288
return Err(TantivyError::InvalidArgument(err_msg));
290289
}
291290
let (document_sender, document_receiver): (AddBatchSender, AddBatchReceiver) =
292-
channel::bounded(PIPELINE_MAX_SIZE_IN_DOCS);
291+
crossbeam_channel::bounded(PIPELINE_MAX_SIZE_IN_DOCS);
293292

294293
let delete_queue = DeleteQueue::new();
295294

@@ -326,7 +325,7 @@ impl IndexWriter {
326325
}
327326

328327
fn drop_sender(&mut self) {
329-
let (sender, _receiver) = channel::bounded(1);
328+
let (sender, _receiver) = crossbeam_channel::bounded(1);
330329
self.operation_sender = sender;
331330
}
332331

@@ -532,7 +531,7 @@ impl IndexWriter {
532531
/// Returns the former segment_ready channel.
533532
fn recreate_document_channel(&mut self) {
534533
let (document_sender, document_receiver): (AddBatchSender, AddBatchReceiver) =
535-
channel::bounded(PIPELINE_MAX_SIZE_IN_DOCS);
534+
crossbeam_channel::bounded(PIPELINE_MAX_SIZE_IN_DOCS);
536535
self.operation_sender = document_sender;
537536
self.index_writer_status = IndexWriterStatus::from(document_receiver);
538537
}

src/indexer/index_writer_status.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl Drop for IndexWriterBomb {
9292
mod tests {
9393
use std::mem;
9494

95-
use crossbeam::channel;
95+
use crossbeam_channel as channel;
9696

9797
use super::IndexWriterStatus;
9898

src/indexer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub mod segment_updater;
2121
mod segment_writer;
2222
mod stamper;
2323

24-
use crossbeam::channel;
24+
use crossbeam_channel as channel;
2525
use smallvec::SmallVec;
2626

2727
pub use self::index_writer::IndexWriter;

src/reader/pool.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::ops::{Deref, DerefMut};
22
use std::sync::atomic::{AtomicUsize, Ordering};
33
use std::sync::Arc;
44

5-
use crossbeam::channel::{unbounded, Receiver, RecvError, Sender};
5+
use crossbeam_channel::{unbounded, Receiver, RecvError, Sender};
66

77
pub struct GenerationItem<T> {
88
generation: usize,
@@ -197,7 +197,7 @@ mod tests {
197197

198198
use std::{iter, mem};
199199

200-
use crossbeam::channel;
200+
use crossbeam_channel as channel;
201201

202202
use super::{Pool, Queue};
203203

src/reader/warming.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl WarmingStateInner {
147147
/// Every [GC_INTERVAL] attempt to GC, with panics caught and logged using
148148
/// [std::panic::catch_unwind].
149149
fn gc_loop(inner: Weak<Mutex<WarmingStateInner>>) {
150-
for _ in crossbeam::channel::tick(GC_INTERVAL) {
150+
for _ in crossbeam_channel::tick(GC_INTERVAL) {
151151
if let Some(inner) = inner.upgrade() {
152152
// rely on deterministic gc in tests
153153
#[cfg(not(test))]

0 commit comments

Comments
 (0)