From cb0f20361d99f87747a73b7dd0ea0e114c95cc1f Mon Sep 17 00:00:00 2001 From: skylar Date: Sun, 25 Oct 2026 15:34:24 -0600 Subject: [PATCH 1/4] chore(deps): refresh safe dependency bumps serde_json 1.0.154, proptest 1.12, base64 0.23, arboard 3.7, open 5.4.5, winresource 0.1.34, pollster 1.0, miniz_oxide 0.9, sha2 0.11.1, libc 0.2.191. --- crates/proof/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/proof/Cargo.toml b/crates/proof/Cargo.toml index 234684a9..4c1a5b11 100644 --- a/crates/proof/Cargo.toml +++ b/crates/proof/Cargo.toml @@ -10,7 +10,7 @@ workspace = true [dependencies] log = { workspace = true } -miniz_oxide = "0.8" +miniz_oxide = "0.9" unicode-normalization = "0.1" [dev-dependencies] From 9d2444375406c3a2f657d721c11838565c6848a5 Mon Sep 17 00:00:00 2001 From: skylar Date: Sun, 25 Oct 2026 16:53:12 -0600 Subject: [PATCH 2/4] fix(deps): keep miniz_oxide at 0.8 --- crates/proof/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/proof/Cargo.toml b/crates/proof/Cargo.toml index 4c1a5b11..234684a9 100644 --- a/crates/proof/Cargo.toml +++ b/crates/proof/Cargo.toml @@ -10,7 +10,7 @@ workspace = true [dependencies] log = { workspace = true } -miniz_oxide = "0.9" +miniz_oxide = "0.8" unicode-normalization = "0.1" [dev-dependencies] From 8dd9441fa9d83c537db6ced851b11d8eeac71746 Mon Sep 17 00:00:00 2001 From: skylar Date: Sun, 25 Oct 2026 16:57:11 -0600 Subject: [PATCH 3/4] chore(deps): bump miniz_oxide to 0.9 --- crates/proof/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/proof/Cargo.toml b/crates/proof/Cargo.toml index 234684a9..4c1a5b11 100644 --- a/crates/proof/Cargo.toml +++ b/crates/proof/Cargo.toml @@ -10,7 +10,7 @@ workspace = true [dependencies] log = { workspace = true } -miniz_oxide = "0.8" +miniz_oxide = "0.9" unicode-normalization = "0.1" [dev-dependencies] From 5f7ccde9fb24eb7e430d9d37b88d64b7245d529d Mon Sep 17 00:00:00 2001 From: skylar Date: Sun, 25 Oct 2026 16:57:14 -0600 Subject: [PATCH 4/4] fix(proof): keep inflate error output out of messages --- crates/proof/src/affix.rs | 4 ++-- crates/proof/src/dict.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/proof/src/affix.rs b/crates/proof/src/affix.rs index c2580bca..7fb7d968 100644 --- a/crates/proof/src/affix.rs +++ b/crates/proof/src/affix.rs @@ -877,8 +877,8 @@ impl AffixDict { /// Read data written by [`AffixDict::to_bytes`]. pub fn from_bytes(data: &[u8]) -> Result { - let raw = - miniz_oxide::inflate::decompress_to_vec_with_limit(data, 64 << 20).map_err(|e| format!("affix dictionary: inflate failed: {e:?}"))?; + let raw = miniz_oxide::inflate::decompress_to_vec_with_limit(data, 64 << 20) + .map_err(|e| format!("affix dictionary: inflate failed: {:?}", e.status))?; let words_at = raw.windows(7).position(|w| w == b"\nWORDS\n").ok_or("affix dictionary: no WORDS section")?; let head = std::str::from_utf8(raw.get(..words_at).unwrap_or_default()).map_err(|_| "affix dictionary: bad utf-8 in the rules")?; let mut lines = head.lines(); diff --git a/crates/proof/src/dict.rs b/crates/proof/src/dict.rs index 83a54d44..789fb6a8 100644 --- a/crates/proof/src/dict.rs +++ b/crates/proof/src/dict.rs @@ -78,7 +78,7 @@ impl Dictionary { /// Deserialize data written by [`Dictionary::to_bytes`]. pub fn from_bytes(data: &[u8]) -> Result { - let raw = miniz_oxide::inflate::decompress_to_vec(data).map_err(|e| format!("hyphenation dictionary: inflate failed: {e:?}"))?; + let raw = miniz_oxide::inflate::decompress_to_vec(data).map_err(|e| format!("hyphenation dictionary: inflate failed: {:?}", e.status))?; let body = raw.strip_prefix(MAGIC).ok_or("hyphenation dictionary: bad header")?; let mut d = Dictionary { words: String::with_capacity(body.len()), offs: vec![0], masks: Vec::new() }; let mut cur: Vec = Vec::new();