Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
omallassi committed Oct 9, 2024
1 parent 619fa9e commit 0d94368
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
10 changes: 5 additions & 5 deletions adr_config_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ edition = "2018"
# confy = "0.3.1"
# use git master dep to get the truncate (https://github.com/rust-cli/confy/blob/master/src/lib.rs#L195)
confy = "0.6.1" #{ git = "https://github.com/rust-cli/confy", rev = "5a58388fa9b8bcd790a62c2a9db5abdcbe9fb467"}
serde_json = "1.0.107"
serde_yaml = "0.9.25"
serde = "1.0.198"
serde_derive = "1.0.198"
serde_json = "1.0.128"
serde_yaml = "0.9.34"
serde = "1.0.210"
serde_derive = "1.0.210"
slog = "2.7.0"
slog-term = "2.9.1"
slog-async = "2.8.0"

[dev-dependencies]
directories = "5.0.1"
uuid = { version = "0.8.1", features = ["v4"] }
uuid = { version = "0.8.2", features = ["v4"] }
8 changes: 4 additions & 4 deletions adr_core_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ edition = "2018"
slog = "2.7.0"
slog-term = "2.9.1"
slog-async = "2.8.0"
lazy_static = "1.4.0"
regex = "1.10.2"
walkdir = "2.4.0"
chrono = "0.4.31"
lazy_static = "1.5.0"
regex = "1.11.0"
walkdir = "2.5.0"
chrono = "0.4.38"

adr_config = {path = "../adr_config_local_impl"}

Expand Down
8 changes: 4 additions & 4 deletions adr_search_local_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ authors = ["MALLASSI Olivier <Olivier.MALLASSI@murex.com>"]
edition = "2018"

[dependencies]
tantivy = "0.21.1"
tantivy = "0.22.0"
# related to https://github.com/quickwit-oss/tantivy/issues/2339 and https://github.com/gyscos/zstd-rs/issues/270
# should be removed when moving to tantivy 0.22
zstd-sys = "=2.0.9"

slog = "2.7.0"
slog-term = "2.9.1"
slog-async = "2.8.0"
serde_json = "1.0.107"
serde_json = "1.0.128"
serde = "1.0.198"
serde_derive = "1.0.198"
chrono="0.4.31"
serde_derive = "1.0.210"
chrono="0.4.38"

adr_config = { path = "../adr_config_local_impl" }
adr_core = {path = "../adr_core_local_impl"}
8 changes: 4 additions & 4 deletions adr_search_local_impl/src/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn search(
//
let reader = index
.reader_builder()
.reload_policy(ReloadPolicy::OnCommit)
.reload_policy(ReloadPolicy::OnCommitWithDelay)
.try_into()?;

let searcher = reader.searcher();
Expand All @@ -172,14 +172,14 @@ pub fn search(

let mut results = std::vec::Vec::new();
for (_score, doc_address) in top_docs {
let retrieved_doc = searcher.doc(doc_address)?;
let retrieved_doc: TantivyDocument = searcher.doc(doc_address)?;
debug!(
get_logger(),
"Found doc [{}]",
schema.to_json(&retrieved_doc)
retrieved_doc.to_json(&schema)
);

let doc_as_json = schema.to_json(&retrieved_doc);
let doc_as_json = retrieved_doc.to_json(&schema);
let search_result: SearchResult = serde_json::from_str(&doc_as_json).unwrap();
results.push(search_result);
}
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "adr"
version = "0.1.0"
version = "0.1.1"
authors = ["MALLASSI Olivier <Olivier.MALLASSI@gmail.com>"]
edition = "2018"

Expand Down
3 changes: 2 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ fn init() -> Result<()> {
/// The main program - start the CLI ...
fn main() {
//
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
let cmd = Command::new("adr")
.version("0.1.0")
.version(VERSION)
.about("A CLI to help you manage your ADR in git")
.subcommand(
Command::new("list")
Expand Down

0 comments on commit 0d94368

Please sign in to comment.