Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(deps): remove unused vulnerable syntax stack
AkitaOnRails64ee534424b1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 65039fcc..68340da1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -33,6 +33,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0native commands and close the residual local-wire vector ([#196]).### Fixed+- Removed the unused `syntect` dependency and its `plist`, `quick-xml`,+ `bincode`, and `yaml-rust` transitive dependencies. This eliminates two+ high-severity `quick-xml` denial-of-service advisories and makes the prior+ temporary cargo-audit exceptions unnecessary; ai-memory's rendered Markdown+ behavior is unchanged because the syntax-highlighting crate was never used.- The Docker wrapper now buffers generated shell completions before streamingthem to stdout. Piping `ai-memory completions <shell>` into a short-livedconsumer such as `head` no longer exposes Docker's own broken-pipe error ordiff --git a/Cargo.lock b/Cargo.lockindex 150a4526..2712e1cc 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -246,7 +246,6 @@ dependencies = ["serde","serde_json","sha2",- "syntect","tempfile","thiserror 2.0.18","tokio",@@ -514,30 +513,6 @@ dependencies = ["serde",]-[[package]]-name = "bincode"-version = "1.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"-dependencies = [- "serde",-]--[[package]]-name = "bit-set"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"-dependencies = [- "bit-vec",-]--[[package]]-name = "bit-vec"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"-[[package]]name = "bitflags"version = "2.11.1"@@ -893,17 +868,6 @@ version = "0.1.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"-[[package]]-name = "fancy-regex"-version = "0.16.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "998b056554fbe42e03ae0e152895cd1a7e1002aec800fdc6635d20270260c46f"-dependencies = [- "bit-set",- "regex-automata",- "regex-syntax",-]-[[package]]name = "fastrand"version = "2.4.1"@@ -1681,12 +1645,6 @@ dependencies = ["vcpkg",]-[[package]]-name = "linked-hash-map"-version = "0.5.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"-[[package]]name = "linux-raw-sys"version = "0.12.1"@@ -1966,19 +1924,6 @@ version = "0.3.33"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"-[[package]]-name = "plist"-version = "1.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1"-dependencies = [- "base64",- "indexmap",- "quick-xml",- "serde",- "time",-]-[[package]]name = "portable-atomic"version = "1.13.1"@@ -2068,15 +2013,6 @@ version = "0.11.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"-[[package]]-name = "quick-xml"-version = "0.39.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"-dependencies = [- "memchr",-]-[[package]]name = "quinn"version = "0.11.9"@@ -2812,27 +2748,6 @@ dependencies = ["syn",]-[[package]]-name = "syntect"-version = "5.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925"-dependencies = [- "bincode",- "fancy-regex",- "flate2",- "fnv",- "once_cell",- "plist",- "regex-syntax",- "serde",- "serde_derive",- "serde_json",- "thiserror 2.0.18",- "walkdir",- "yaml-rust",-]-[[package]]name = "sysinfo"version = "0.32.1"@@ -3957,15 +3872,6 @@ dependencies = ["rustix",]-[[package]]-name = "yaml-rust"-version = "0.4.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"-dependencies = [- "linked-hash-map",-]-[[package]]name = "yansi"version = "1.0.1"diff --git a/crates/ai-memory-web/Cargo.toml b/crates/ai-memory-web/Cargo.tomlindex 1c315b95..8993bdf4 100644--- a/crates/ai-memory-web/Cargo.toml+++ b/crates/ai-memory-web/Cargo.toml@@ -25,9 +25,6 @@ sha2.workspace = true# Templating + markdown.askama = "0.12"pulldown-cmark = { version = "0.12", default-features = false, features = ["html"] }-# Syntax highlighting for fenced code blocks. Default features pull-# in onig (regex via C); the pure-Rust regex feature avoids that.-syntect = { version = "5", default-features = false, features = ["default-fancy"] }[build-dependencies]anyhow.workspace = truediff --git a/deny.toml b/deny.tomlindex eddb27e4..59a80f08 100644--- a/deny.toml+++ b/deny.toml@@ -11,18 +11,7 @@ feature-depth = 1[advisories]version = 2-ignore = [- # syntect transitively pulls these unmaintained crates. They are not- # network-facing in ai-memory's usage and there is no safe upstream upgrade- # path yet; keep cargo-deny useful for actionable advisories.- "RUSTSEC-2025-0141", # bincode 1.3.3 unmaintained- "RUSTSEC-2024-0320", # yaml-rust 0.4.5 unmaintained- # quick-xml is also pulled only through syntect -> plist for syntax/theme- # assets. plist v1.9 still constrains quick-xml to 0.39.x, so there is no- # compatible cargo update path to the fixed 0.41.x branch yet.- "RUSTSEC-2026-0194", # quick-xml duplicate-attribute check DoS- "RUSTSEC-2026-0195", # quick-xml NsReader namespace allocation DoS-]+ignore = [][licenses]version = 2