Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
deps: bump hf-hub from 0.4.3 to 0.5.0 (#2285)
dependabot[bot]4925bf6a8297
diff --git a/Cargo.lock b/Cargo.lockindex 6dd065fb6..88a1eccd1 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1037,19 +1037,6 @@ dependencies = ["static_assertions",]-[[package]]-name = "console"-version = "0.15.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8"-dependencies = [- "encode_unicode",- "libc",- "once_cell",- "unicode-width",- "windows-sys 0.59.0",-]-[[package]]name = "console"version = "0.16.3"@@ -1549,7 +1536,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f3c8600c9ec79b51d60c19911fe14eac04fe9c2895e87d2a3e80e2213d645a32"dependencies = ["anyhow",- "hf-hub 0.5.0",+ "hf-hub","image","ndarray","ort",@@ -1876,7 +1863,7 @@ dependencies = ["dashmap","fastembed","flate2",- "hf-hub 0.4.3",+ "hf-hub","http 1.4.2","icu_segmenter","magika",@@ -2016,26 +2003,6 @@ version = "0.4.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"-[[package]]-name = "hf-hub"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "629d8f3bbeda9d148036d6b0de0a3ab947abd08ce90626327fc3547a49d59d97"-dependencies = [- "dirs",- "http 1.4.2",- "indicatif 0.17.11",- "libc",- "log",- "rand 0.9.4",- "reqwest",- "serde",- "serde_json",- "thiserror 2.0.18",- "ureq 2.12.1",- "windows-sys 0.60.2",-]-[[package]]name = "hf-hub"version = "0.5.0"@@ -2044,7 +2011,7 @@ checksum = "aef3982638978efa195ff11b305f51f1f22f4f0a6cabee7af79b383ebee6a213"dependencies = ["dirs","http 1.4.2",- "indicatif 0.18.4",+ "indicatif","libc","log","rand 0.9.4",@@ -2052,7 +2019,7 @@ dependencies = ["serde","serde_json","thiserror 2.0.18",- "ureq 3.3.0",+ "ureq","windows-sys 0.61.2",]@@ -2438,26 +2405,13 @@ dependencies = ["hashbrown 0.17.1",]-[[package]]-name = "indicatif"-version = "0.17.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "183b3088984b400f4cfac3620d5e076c84da5364016b4f49473de574b2586235"-dependencies = [- "console 0.15.11",- "number_prefix",- "portable-atomic",- "unicode-width",- "web-time",-]-[[package]]name = "indicatif"version = "0.18.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "25470f23803092da7d239834776d653104d551bc4d7eacaf31e6837854b8e9eb"dependencies = [- "console 0.16.3",+ "console","portable-atomic","unicode-width","unit-prefix",@@ -2956,12 +2910,6 @@ dependencies = ["libc",]-[[package]]-name = "number_prefix"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"-[[package]]name = "once_cell"version = "1.21.4"@@ -4362,7 +4310,7 @@ dependencies = ["derive_builder","esaxx-rs","getrandom 0.3.4",- "indicatif 0.18.4",+ "indicatif","itertools 0.14.0","log","macro_rules_attribute",@@ -4842,25 +4790,6 @@ version = "0.9.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"-[[package]]-name = "ureq"-version = "2.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d"-dependencies = [- "base64 0.22.1",- "flate2",- "log",- "once_cell",- "rustls",- "rustls-pki-types",- "serde",- "serde_json",- "socks",- "url",- "webpki-roots 0.26.11",-]-[[package]]name = "ureq"version = "3.3.0"@@ -5236,15 +5165,6 @@ dependencies = ["windows-targets 0.52.6",]-[[package]]-name = "windows-sys"-version = "0.59.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"-dependencies = [- "windows-targets 0.52.6",-]-[[package]]name = "windows-sys"version = "0.60.2"diff --git a/crates/headroom-core/Cargo.toml b/crates/headroom-core/Cargo.tomlindex 534a41b78..5fd25553c 100644--- a/crates/headroom-core/Cargo.toml+++ b/crates/headroom-core/Cargo.toml@@ -22,7 +22,7 @@ tokenizers = "0.22"# with `rustls` (no system OpenSSL dep — keeps the binary static-linkable for# AWS deploys). `from_pretrained` is called once at startup, so blocking is# fine; if a tokio caller needs it later we can wrap in `spawn_blocking`.-hf-hub = { version = "0.4", default-features = false, features = ["ureq", "rustls-tls"] }+hf-hub = { version = "0.5", default-features = false, features = ["ureq", "rustls-tls"] }# `md5` for the CCR cache_key. Python's compression_store hashes the original# diff with MD5 truncated to 24 hex chars; we must match byte-for-byte.md-5 = "0.10"