Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(autoindex): upgrade calamine to 0.36.1 and zip to 8 to clear cargo-audit advisories (#1358)

Christian M. Todie884267518088
diff --git a/engine/Cargo.lock b/engine/Cargo.lock
index 67a239699..5f85eb6a1 100644
--- a/engine/Cargo.lock
+++ b/engine/Cargo.lock
@@ -152,15 +152,6 @@ version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
-[[package]]
-name = "arbitrary"
-version = "1.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
-dependencies = [
- "derive_arbitrary",
-]
-
[[package]]
name = "arc-swap"
version = "1.9.1"
@@ -965,18 +956,20 @@ dependencies = [
[[package]]
name = "calamine"
-version = "0.26.1"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "138646b9af2c5d7f1804ea4bf93afc597737d2bd4f7341d67c48b03316976eb1"
+checksum = "5fa68281b1a76b54a62156474adb06bb380a67e07dd60656e3217152b42183f3"
dependencies = [
+ "atoi_simd",
"byteorder",
"chrono",
"codepage",
"encoding_rs",
+ "fast-float2",
"log",
- "quick-xml 0.31.0",
+ "quick-xml",
"serde",
- "zip 2.4.2",
+ "zip 8.6.0",
]
[[package]]
@@ -1098,9 +1091,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chacha20"
-version = "0.10.1"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
dependencies = [
"cfg-if",
"cpufeatures 0.3.0",
@@ -1672,17 +1665,6 @@ dependencies = [
"serde_core",
]
-[[package]]
-name = "derive_arbitrary"
-version = "1.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "derive_builder"
version = "0.20.2"
@@ -3711,7 +3693,7 @@ dependencies = [
"fast-float2",
"libc",
"log",
- "quick-xml 0.41.0",
+ "quick-xml",
"serde",
"serde_json",
"thiserror 2.0.18",
@@ -3917,7 +3899,7 @@ dependencies = [
"nom 8.0.0",
"office_oxide",
"phf 0.14.0",
- "quick-xml 0.41.0",
+ "quick-xml",
"regex",
"serde",
"serde_json",
@@ -4454,22 +4436,13 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
-[[package]]
-name = "quick-xml"
-version = "0.31.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"
-dependencies = [
- "encoding_rs",
- "memchr",
-]
-
[[package]]
name = "quick-xml"
version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
dependencies = [
+ "encoding_rs",
"memchr",
"serde",
]
@@ -7380,7 +7353,7 @@ dependencies = [
"memchr",
"notify",
"pdf_oxide",
- "quick-xml 0.41.0",
+ "quick-xml",
"rayon",
"regex",
"reqwest",
@@ -7434,7 +7407,7 @@ dependencies = [
"walkdir",
"xerj-common",
"xxhash-rust",
- "zip 2.4.2",
+ "zip 8.6.0",
]
[[package]]
@@ -7915,23 +7888,6 @@ dependencies = [
"syn",
]
-[[package]]
-name = "zip"
-version = "2.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50"
-dependencies = [
- "arbitrary",
- "crc32fast",
- "crossbeam-utils",
- "displaydoc",
- "flate2",
- "indexmap 2.14.0",
- "memchr",
- "thiserror 2.0.18",
- "zopfli",
-]
-
[[package]]
name = "zip"
version = "7.2.0"
diff --git a/engine/crates/xerj-autoindex/Cargo.toml b/engine/crates/xerj-autoindex/Cargo.toml
index 8be565134..cc2efb0cb 100644
--- a/engine/crates/xerj-autoindex/Cargo.toml
+++ b/engine/crates/xerj-autoindex/Cargo.toml
@@ -132,15 +132,16 @@ flate2 = "1" # gzip streaming (rust backend)
pdf_oxide = { version = "=0.3.75", default-features = false, features = ["legacy-crypto"] }
csv = "1" # streaming CSV with sniffed dialect
quick-xml = "0.41" # XML pull parser + DOCX internals
-zip = { version = "2", default-features = false, features = ["deflate"] } # DOCX container
+zip = { version = "8", default-features = false, features = ["deflate"] } # DOCX container
# --- Legacy Microsoft Office binary formats (OLE2 / Compound File Binary) ---
# calamine reads the legacy BIFF `.xls` worksheet stream (it ships its own CFB
-# reader internally); pinned to 0.26.1, the last line that depends on `zip ^2`
-# so it reuses this crate's existing `zip 2` rather than pulling a second major
-# of zip into the tree. Licence: MIT. Its transitive adds are codepage (MIT,
-# for the legacy 8-bit cell codepage) and log (MIT/Apache-2.0); byteorder and
-# encoding_rs are already here.
-calamine = { version = "=0.26.1", features = ["dates"] }
+# reader internally); pinned to 0.36.1, which depends on `zip ^8.6` and
+# `quick-xml ^0.41` so it shares this crate's `zip 8` and `quick-xml 0.41`
+# majors without retaining `quick-xml 0.31.0` (RUSTSEC-2026-0194 / 0195).
+# Licence: MIT. Its transitive adds are codepage (MIT, for the legacy 8-bit
+# cell codepage) and log (MIT/Apache-2.0); byteorder and encoding_rs are
+# already here.
+calamine = { version = "=0.36.1", features = ["dates"] }
# `cfb` reads the OLE2/Compound File Binary container directly: used by the
# content sniffer to route a `.doc`/`.xls`/other OLE2 file by its stream names,
# and by the `.doc` extractor to pull the WordDocument + Table streams and the