From 5c9c9800723fb559a9b633b370018e53f7aea56f Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 21:23:44 -0700 Subject: [PATCH 1/7] fix(gui): jobs.rs cites the plan, not a product rule no claims file defines WB-GUI-2 was never written into docs/spec/claims/, so the source-line test could not find it. What the module rests on is plan 3.2 (D-78: a tab's threads end with it); the hold on a change an owner has begun is a CONVENTION, named as one. Co-Authored-By: Claude Sonnet 5.5 --- crates/ledger-gui/src/jobs.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ledger-gui/src/jobs.rs b/crates/ledger-gui/src/jobs.rs index 0ab26449..62fa2d1d 100644 --- a/crates/ledger-gui/src/jobs.rs +++ b/crates/ledger-gui/src/jobs.rs @@ -7,9 +7,10 @@ //! when every one of them has ended; and a job that must not be cut //! off (an owner's change to the books) holds the tab and the window //! open until it is done. -//! SOURCE: plan/p15-app-and-relay.md 3.2 (closing a tab ends what the tab -//! started); WB-GUI-2 (the viewer never abandons a change to the -//! books). +//! SOURCE: plan/p15-app-and-relay.md 3.2 (D-78: a tab per open company, +//! and what the tab started ends with it); CONVENTION (a change +//! an owner has begun on the books is never cut off half-way: the +//! tab and the window wait for it). //! INVARIANTS: //! 1. Every thread started through a [`Spawner`] is counted from before //! it starts until it has ended, however it ends (a panic too): the From 62364fec62d0b03130e55701e78b365267147438 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 21:23:44 -0700 Subject: [PATCH 2/7] docs(spec): WB-format-1 names the function that picks the newer-journal message `verified` is a field of a StoreError::NewerJournal variant, which the claims check does not read as an item; it passed before only because a doc comment in gui app.rs quoted "verified" (a string literal, removed today). The claim now names newer_journal_text, the function that reads the flag, and says in words what the flag is. Co-Authored-By: Claude Sonnet 5.5 --- docs/spec/claims/format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/claims/format.md b/docs/spec/claims/format.md index f6a5a3ce..eddf0fdf 100644 --- a/docs/spec/claims/format.md +++ b/docs/spec/claims/format.md @@ -74,7 +74,7 @@ every complete line before it changes anything: a cut-off last line is set aside only when the lines before it pass, so an older version never alters newer books. -*Enforced:* `ledger_store::format` (`JournalFormat::admit`, `declared`, `gate`, `settle`, `declaration`), `journal::ENVELOPE_KEYS`, `JournalLine::parse`, `journal::read_journal_and_format`, `Snapshot::read_new`, `Store::open`, `Snapshot::check_disk`, `Store::declare_journal_format`, `StoreError::NewerJournal` (its `verified` flag picks the message). +*Enforced:* `ledger_store::format` (`JournalFormat::admit`, `declared`, `gate`, `settle`, `declaration`), `journal::ENVELOPE_KEYS`, `JournalLine::parse`, `journal::read_journal_and_format`, `Snapshot::read_new`, `Store::open`, `Snapshot::check_disk`, `Store::declare_journal_format`, `StoreError::NewerJournal` (the flag it carries, whether the refused line's own hash was checked, picks the message in `newer_journal_text`). *Checked:* `ledger-store` `tests/format.rs` (`old_reader_gets_newer_journal`, `a_damaged_line_that_looks_newer_is_corrupt_when_the_next_line_checks_it`, `an_unreadable_last_line_is_reported_as_newer_or_damaged`, `a_newer_line_the_next_line_chains_onto_is_newer_and_intact`, `a_newer_format_frames_its_lines_its_own_way`, `an_unknown_envelope_key_is_newer_and_checked_through`, `a_refused_line_followed_by_a_garbled_line_is_unverified`, `a_line_that_is_not_utf8_is_corrupt_for_the_viewer_and_the_writer`, `an_old_reader_never_repairs_newer_books`, `a_blank_line_is_corrupt_for_the_viewer_and_the_writer`, `damaged_journals_are_still_corrupt`) and the unit tests in `format.rs`; `ledger-gui` `tests/newer_journal.rs`; `ledger-cli` `tests/startup.rs`; the `fuzz_store_replay` target (the writer and the viewer agree on newer versus bad). **WB-format-2 The journal features: a line an earlier version can't read is From c072e68fda07c62927cf53e76fef8f0abc4ecf0c Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 21:23:44 -0700 Subject: [PATCH 3/7] docs(store): the doc link to take_lock_notes is a method link rustdoc -D warnings refused [`take_lock_notes`]: a method is linked as Self::take_lock_notes. Co-Authored-By: Claude Sonnet 5.5 --- crates/ledger-store/src/backup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ledger-store/src/backup.rs b/crates/ledger-store/src/backup.rs index f1a83e7b..b6bda1da 100644 --- a/crates/ledger-store/src/backup.rs +++ b/crates/ledger-store/src/backup.rs @@ -337,7 +337,7 @@ impl Git { } /// This git, sharing `sink` for the lock files it deals with - /// (INVARIANT 5), which the caller takes with [`take_lock_notes`]: + /// (INVARIANT 5), which the caller takes with [`Self::take_lock_notes`]: /// every git made from the same sink reports into it. #[must_use] pub fn with_lock_notes(mut self, sink: LockNotes) -> Self { From 13e676a101c8f5ceb83c0ac1608414454ba71500 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 21:48:18 -0700 Subject: [PATCH 4/7] fix(gui): the tab bar's pictures are compared as shapes, and no picture depends on a temporary name The stored tab-bar images were compared pixel for pixel on every machine. GitHub's software renderer rasterizes the same shapes differently from the GPU that made them (thousands of faint pixels, dozens strong along glyph edges); sidenav.rs already says so and compares shapes everywhere, pixels only locally. The tab bar now does the same: a hash of the visible shapes (tests/snapshots/.shapes, TABS_BLESS=1 writes them), the pixels with TABS_PIXELS=1. The images are unchanged and still pass locally. The hash is of a description of each shape, not of its debug form, for two things in the debug form depended on the run, not on the books: a glyph's place in egui's font atlas changes with which tests ran in the process before (the same view hashed differently alone and beside another test), and the page under a short bar holds the current time, clipped away, which no picture shows. Shapes whose clip is off the window are left out. A new test renders the same companies from two differently named temporary folders, light and dark, and requires the same hue keys (the book ids), the same shapes and the same pixels. The sidenav fixture's copy outside a data root is in a folder of a fixed name, not the temporary folder's random one, since that folder's name is its badge's hue key. Co-Authored-By: Claude Sonnet 5.5 --- crates/ledger-gui/tests/sidenav.rs | 13 +- .../tests/snapshots/tabs_empty_dark.shapes | 1 + .../tests/snapshots/tabs_empty_light.shapes | 1 + .../tests/snapshots/tabs_many_dark.shapes | 1 + .../tests/snapshots/tabs_many_light.shapes | 1 + .../tests/snapshots/tabs_one_dark.shapes | 1 + .../tests/snapshots/tabs_one_light.shapes | 1 + .../tests/snapshots/tabs_plus_dark.shapes | 1 + .../tests/snapshots/tabs_plus_light.shapes | 1 + .../tests/snapshots/tabs_two_dark.shapes | 1 + .../tests/snapshots/tabs_two_light.shapes | 1 + crates/ledger-gui/tests/tabs.rs | 141 +++++++++++++++++- 12 files changed, 153 insertions(+), 11 deletions(-) create mode 100644 crates/ledger-gui/tests/snapshots/tabs_empty_dark.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_empty_light.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_many_dark.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_many_light.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_one_dark.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_one_light.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_plus_dark.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_plus_light.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_two_dark.shapes create mode 100644 crates/ledger-gui/tests/snapshots/tabs_two_light.shapes diff --git a/crates/ledger-gui/tests/sidenav.rs b/crates/ledger-gui/tests/sidenav.rs index 5a04f319..2df51108 100644 --- a/crates/ledger-gui/tests/sidenav.rs +++ b/crates/ledger-gui/tests/sidenav.rs @@ -104,6 +104,7 @@ const FOOTERS: [Footer; 9] = [ /// menu), about 560 events and 110 stored receipts. Removed when dropped. struct Fixture { _dir: tempfile::TempDir, + _plain_dir: tempfile::TempDir, root: PathBuf, plain: PathBuf, } @@ -153,15 +154,19 @@ impl Fixture { std::fs::create_dir_all(&root).unwrap(); fill(&root); // The same books outside the root: no Books menu. - let plain = tempfile::Builder::new() + // Outside a data root a company's badge hue is chosen from its + // folder's name (company.rs `hue_key`), so that folder has a fixed + // name here, never the temporary folder's random one: the same + // picture on every machine and every run. + let plain_dir = tempfile::Builder::new() .prefix("wb-gui-sidenav-plain-") .tempdir() - .unwrap() - .keep(); - let plain_book = plain.join("books-data"); + .unwrap(); + let plain_book = plain_dir.path().join("wanderland-copy").join("books-data"); copy_dir(&root, &plain_book); Fixture { _dir: dir, + _plain_dir: plain_dir, root, plain: plain_book, } diff --git a/crates/ledger-gui/tests/snapshots/tabs_empty_dark.shapes b/crates/ledger-gui/tests/snapshots/tabs_empty_dark.shapes new file mode 100644 index 00000000..10571da8 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_empty_dark.shapes @@ -0,0 +1 @@ +264f46e9e8e6513b diff --git a/crates/ledger-gui/tests/snapshots/tabs_empty_light.shapes b/crates/ledger-gui/tests/snapshots/tabs_empty_light.shapes new file mode 100644 index 00000000..154f7f87 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_empty_light.shapes @@ -0,0 +1 @@ +3a01e3d1c17e7a42 diff --git a/crates/ledger-gui/tests/snapshots/tabs_many_dark.shapes b/crates/ledger-gui/tests/snapshots/tabs_many_dark.shapes new file mode 100644 index 00000000..31cc95f9 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_many_dark.shapes @@ -0,0 +1 @@ +d3c3cc6f9e97b02b diff --git a/crates/ledger-gui/tests/snapshots/tabs_many_light.shapes b/crates/ledger-gui/tests/snapshots/tabs_many_light.shapes new file mode 100644 index 00000000..933f8119 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_many_light.shapes @@ -0,0 +1 @@ +19867322b240d3af diff --git a/crates/ledger-gui/tests/snapshots/tabs_one_dark.shapes b/crates/ledger-gui/tests/snapshots/tabs_one_dark.shapes new file mode 100644 index 00000000..552b57fb --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_one_dark.shapes @@ -0,0 +1 @@ +36b4501433dfff25 diff --git a/crates/ledger-gui/tests/snapshots/tabs_one_light.shapes b/crates/ledger-gui/tests/snapshots/tabs_one_light.shapes new file mode 100644 index 00000000..d53a098b --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_one_light.shapes @@ -0,0 +1 @@ +216c4495455951ef diff --git a/crates/ledger-gui/tests/snapshots/tabs_plus_dark.shapes b/crates/ledger-gui/tests/snapshots/tabs_plus_dark.shapes new file mode 100644 index 00000000..3932e033 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_plus_dark.shapes @@ -0,0 +1 @@ +e81f5a809e024c55 diff --git a/crates/ledger-gui/tests/snapshots/tabs_plus_light.shapes b/crates/ledger-gui/tests/snapshots/tabs_plus_light.shapes new file mode 100644 index 00000000..ede5663b --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_plus_light.shapes @@ -0,0 +1 @@ +aeace623f1babf2b diff --git a/crates/ledger-gui/tests/snapshots/tabs_two_dark.shapes b/crates/ledger-gui/tests/snapshots/tabs_two_dark.shapes new file mode 100644 index 00000000..ce94b163 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_two_dark.shapes @@ -0,0 +1 @@ +057c55da25ed99a6 diff --git a/crates/ledger-gui/tests/snapshots/tabs_two_light.shapes b/crates/ledger-gui/tests/snapshots/tabs_two_light.shapes new file mode 100644 index 00000000..775b5556 --- /dev/null +++ b/crates/ledger-gui/tests/snapshots/tabs_two_light.shapes @@ -0,0 +1 @@ +43e2533dd7ebc46b diff --git a/crates/ledger-gui/tests/tabs.rs b/crates/ledger-gui/tests/tabs.rs index 11b346da..af260588 100644 --- a/crates/ledger-gui/tests/tabs.rs +++ b/crates/ledger-gui/tests/tabs.rs @@ -89,10 +89,12 @@ struct Co { impl World { fn new() -> World { - let dir = tempfile::Builder::new() - .prefix("wb-gui-tabs-") - .tempdir() - .unwrap(); + World::named("wb-gui-tabs-") + } + + /// A world whose temporary folder's name starts with `prefix`. + fn named(prefix: &str) -> World { + let dir = tempfile::Builder::new().prefix(prefix).tempdir().unwrap(); let home = dir.path().join("home"); std::fs::create_dir_all(&home).unwrap(); let root = dir.path().join("root"); @@ -1298,11 +1300,101 @@ fn every_tab_never_writes_into_its_books_in_front_or_not() { // ---- 8: how the bar looks ---------------------------------------------------- -/// Pixels compared where there is a renderer; tolerant of antialiasing -/// (as the sidebar's are: sidenav.rs). +/// A shape in words, without where its glyphs happen to lie in egui's font +/// atlas: that depends on which text this process laid out first (other +/// tests, in other threads), and no picture shows it. Positions, colours, +/// the text and each glyph's place are all here. +fn describe(shape: &egui::epaint::Shape) -> String { + use egui::epaint::Shape; + match shape { + Shape::Text(t) => { + let mut out = format!( + "Text pos={:?} under={:?} fallback={:?} over={:?} opacity={:?} angle={:?} text={:?}", + t.pos, + t.underline, + t.fallback_color, + t.override_text_color, + t.opacity_factor, + t.angle, + t.galley.job.text, + ); + for placed in &t.galley.rows { + out.push_str(&format!(" row@{:?} size={:?}", placed.pos, placed.row.size)); + for g in &placed.row.glyphs { + out.push_str(&format!(" {}@{:?}+{:?}", g.chr, g.pos, g.advance_width)); + } + for v in &placed.row.visuals.mesh.vertices { + out.push_str(&format!(" v{:?}{:?}", v.pos, v.color)); + } + } + out + } + Shape::Vec(v) => v.iter().map(describe).collect::>().join(" | "), + Shape::Mesh(m) => { + let mut out = String::from("Mesh"); + for v in &m.vertices { + out.push_str(&format!(" v{:?}{:?}", v.pos, v.color)); + } + out + } + other => format!("{other:?}"), + } +} + +/// The shapes the window paints where it can be seen: those whose clip +/// reaches into the window. (The page under a short bar is laid out far +/// below it and holds the time now, "Nov 21 2026 04:26 UTC", which no +/// picture shows: it is clipped away.) +fn shown_shapes(h: &Harness<'_, App>) -> Vec { + let screen = h.ctx.content_rect(); + h.output() + .shapes + .iter() + .filter(|s| s.clip_rect.intersects(screen)) + .map(|s| format!("{:?} {}", s.clip_rect, describe(&s.shape))) + .collect() +} + +/// A hash of every shape the window paints where it can be seen (FNV-1a +/// over their debug form): the same shapes paint the same pixels, on any +/// renderer. What the picture shows (colours, text and where each lies) is +/// in them; how a renderer rasterizes their edges is not. +fn shapes_of(h: &Harness<'_, App>) -> u64 { + let mut hash: u64 = 0xcbf2_9ce4_8422_2325; + for shape in shown_shapes(h) { + for b in shape.bytes() { + hash ^= b as u64; + hash = hash.wrapping_mul(0x100_0000_01b3); + } + } + hash +} + +/// The look of the window, compared as sidenav.rs compares its sidebar's: +/// the shapes painted are the check everywhere +/// (`tests/snapshots/.shapes`; `TABS_BLESS=1` writes them), for +/// another renderer rasterizes the same shapes differently (CI's software +/// one differs from a GPU in antialiasing, by thousands of faint pixels +/// and some dozens of strong ones along glyph edges). The pixels +/// (`tests/snapshots/.png`, tolerant of antialiasing) are compared +/// as well on the machine that made them and any with its renderer: +/// `TABS_PIXELS=1`. fn picture(h: &mut Harness<'_, App>, name: &str) { + let dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/snapshots"); + let file = dir.join(format!("{name}.shapes")); + let shapes = format!("{:016x}", shapes_of(h)); + if std::env::var("TABS_BLESS").is_ok() { + std::fs::write(&file, format!("{shapes}\n")).unwrap(); + } else { + let want = std::fs::read_to_string(&file) + .unwrap_or_else(|e| panic!("{}: {e} (TABS_BLESS=1 writes it)", file.display())); + assert_eq!(shapes, want.trim(), "the shapes of {name} changed"); + } + if std::env::var("TABS_PIXELS").is_err() { + return; + } if h.render().is_err() { - eprintln!("no renderer: {name} not compared"); + eprintln!("no renderer: {name} pixels not compared"); return; } let options = egui_kittest::SnapshotOptions::new() @@ -1390,6 +1482,41 @@ fn the_tab_bar_with_one_two_and_many_tabs() { } } +/// What the window shows depends on the books and the theme alone: not on +/// the name of the temporary folder they sit in, the clock, or the +/// machine. The same companies made in two worlds whose folders are named +/// unlike paint the same shapes and the same pixels (where there is a +/// renderer), with the badge hue chosen from the id of the books. +#[test] +fn the_bar_is_the_same_from_differently_named_folders() { + let names = ["Wanderland Labs LLC", "Fernhill Studio"]; + let mut seen: Vec<(u64, Option>, Vec)> = Vec::new(); + for (prefix, dark) in [ + ("a-", false), + ("zzzz-a-much-longer-name-", false), + ("a-", true), + ("zzzz-a-much-longer-name-", true), + ] { + let w = World::named(prefix); + let mut h = shown(&w, &names, dark, BAR_SIZE); + let keys: Vec = (0..names.len()) + .map(|i| h.state().views()[i].hue_key()) + .collect(); + let pixels = h.render().ok().map(|img| img.into_raw()); + seen.push((shapes_of(&h), pixels, keys)); + } + for pair in [(0, 1), (2, 3)] { + let (a, b) = (&seen[pair.0], &seen[pair.1]); + assert_eq!(a.2, ["co-0", "co-1"], "a company's hue key is its book id"); + assert_eq!( + a.2, b.2, + "the hue key is the book id, not the folder's name" + ); + assert_eq!(a.0, b.0, "the shapes differ with the folder's name"); + assert!(a.1 == b.1, "the pixels differ with the folder's name"); + } +} + #[test] fn the_empty_window_and_the_plus_list() { for dark in [false, true] { From e42c3909fa13735740e904836ec00102ad88255d Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 22:17:20 -0700 Subject: [PATCH 5/7] fix(gui): the tab strip's width is folded, not summed, so kernel-only passes scripts/raw-decimal-arith.sh refuses an Iterator::sum of any type (it cannot tell widths from money without types it does not have). The tab widths are f32 layout, no money; a fold says the same and the check reads 0 places. Co-Authored-By: Claude Sonnet 5.5 --- crates/ledger-gui/src/tabs.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ledger-gui/src/tabs.rs b/crates/ledger-gui/src/tabs.rs index a3b2ce4c..1f56dbae 100644 --- a/crates/ledger-gui/src/tabs.rs +++ b/crates/ledger-gui/src/tabs.rs @@ -176,8 +176,10 @@ impl TabBar { // when they don't fit, the "+" stays at the right edge // and the tabs scroll. let widths: Vec = tabs.iter().map(|t| tab_width(ui, t)).collect(); - let total: f32 = - widths.iter().sum::() + widths.len().saturating_sub(1) as f32 * TAB_GAP; + // A fold, not `sum`: the kernel-only check refuses an + // `Iterator::sum` of any type, and these are widths. + let total: f32 = widths.iter().fold(0.0, |w, t| w + t) + + widths.len().saturating_sub(1) as f32 * TAB_GAP; let room = (ui.available_width() - PLUS_W - PLUS_GAP).max(0.0); let strip_w = total.min(room); let strip = egui::Rect::from_min_size(bar.min, vec2(strip_w, bar.height())); From 70f24daf99db3dc358b6af7b9b437e050b731a2d Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 22:19:40 -0700 Subject: [PATCH 6/7] fix(deps): zip 9.0.2 to 9.8.1, for RUSTSEC-2026-0548 zip's reader extracted entries under local-header names that can differ from the central directory (fixed in 9.0.5). ledger-package reads packages with it. Lock file only; ledger-package builds and its unit tests pass. Co-Authored-By: Claude Sonnet 5.5 --- Cargo.lock | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07f0fcfa..06305b55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -142,6 +142,7 @@ dependencies = [ "cipher 0.5.2", "cpubits", "cpufeatures 0.3.1", + "zeroize", ] [[package]] @@ -4263,9 +4264,9 @@ checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" [[package]] name = "lzma-rust2" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fde178a3caf126c440fa15628147772d8ee590a39477d711353fbe2e58a73a5b" +checksum = "ef1d73c59a56771343712b22ea5615092c612c16ba291c0979e3105dfeec4890" dependencies = [ "sha2 0.11.0", ] @@ -7080,7 +7081,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix 1.1.5", "windows-sys 0.61.2", @@ -7515,9 +7516,9 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" [[package]] name = "typed-path" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" [[package]] name = "typeid" @@ -9426,6 +9427,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" dependencies = [ "serde", + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] @@ -9467,9 +9480,9 @@ dependencies = [ [[package]] name = "zip" -version = "9.0.2" +version = "9.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2fc56a6707efb066c40aead2409ebb1224e6dde24a074e9fbc78ced500507b" +checksum = "a9534624d547e3f516ecde0ed9a70d37788f01d340efcfdd03bf3ea8e163c1d0" dependencies = [ "aes", "bzip2", @@ -9480,6 +9493,7 @@ dependencies = [ "getrandom 0.4.3", "hmac 0.13.0", "indexmap", + "libc", "lzma-rust2", "memchr", "nix", @@ -9488,6 +9502,7 @@ dependencies = [ "sha1", "time", "typed-path", + "windows-sys 0.60.2", "zeroize", "zopfli", "zstd", @@ -9519,27 +9534,27 @@ dependencies = [ [[package]] name = "zstd" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3ae9bf90af6e40197bef767eeefc46ad6397420fe873830bd85e5fbbfb3c70" +checksum = "ad5020ab8f27bfc0024ad0a07aed6bf022a16208f479686fbed4fdd0c85eb0b3" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "8.2.0" +version = "8.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded520f16b29e1a9b771c722221b2b0a0398c2316d9bb3c42b458a5414d7434b" +checksum = "5a9ea9cc2576c2fcc104e9cec04f46e3ede564f4fbc206831e4ef7e859a4140d" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.1.2+zstd.1.5.7" +version = "2.1.3+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" +checksum = "f729a06d0257428fd9d997ac8db7e1407bd0262ab016b085b36bc52957c0052d" dependencies = [ "cc", "pkg-config", From ca57ac03cce975b8823cf7f7282e0026ccc2818c Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 20 Nov 2026 22:22:43 -0700 Subject: [PATCH 7/7] docs(notices): regenerated for zip 9.8.1 and its zstd, lzma-rust2 The new zstd-sys carries the BSD 2-Clause text of its legacy decoders, so the notices gain that licence. libc was already listed. Co-Authored-By: Claude Sonnet 5.5 --- THIRD-PARTY-NOTICES.txt | 55 +++++++++++++++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt index ebc82a2d..05616714 100644 --- a/THIRD-PARTY-NOTICES.txt +++ b/THIRD-PARTY-NOTICES.txt @@ -661,7 +661,7 @@ Apache License 2.0 ================================================================================ Used by: - lzma-rust2 0.21.0 + lzma-rust2 0.25.0 Apache License Version 2.0, January 2004 @@ -2522,6 +2522,44 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +================================================================================ +BSD 2-Clause "Simplified" License +================================================================================ + +Used by: + zstd-sys 2.1.3+zstd.1.5.7 + +The decoders for legacy formats, in zstd/lib/legacy/, include code under the +2-clause BSD license: + +BSD 2-Clause License + +Copyright (C) 2013-2016, Yann Collet. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ================================================================================ BSD 3-Clause "New" or "Revised" License ================================================================================ @@ -2628,9 +2666,9 @@ BSD 3-Clause "New" or "Revised" License ================================================================================ Used by: - zstd-safe 8.2.0 - zstd-sys 2.1.2+zstd.1.5.7 - zstd 0.14.3 + zstd-safe 8.3.0 + zstd-sys 2.1.3+zstd.1.5.7 + zstd 0.14.4 BSD 3-Clause License @@ -2667,7 +2705,7 @@ BSD 3-Clause "New" or "Revised" License ================================================================================ Used by: - zstd-sys 2.1.2+zstd.1.5.7 + zstd-sys 2.1.3+zstd.1.5.7 BSD License @@ -2897,7 +2935,7 @@ BSD 3-Clause "New" or "Revised" License ================================================================================ Used by: - zstd-sys 2.1.2+zstd.1.5.7 + zstd-sys 2.1.3+zstd.1.5.7 The auto-generated bindings are under the 3-clause BSD license: @@ -6560,6 +6598,7 @@ MIT License Used by: chacha20 0.10.2 chacha20poly1305 0.11.0 + zeroize_derive 1.5.0 Copyright (c) 2019-2026 The RustCrypto Project Developers @@ -9765,7 +9804,7 @@ Used by: thiserror-impl 2.0.21 thiserror 1.0.69 thiserror 2.0.21 - typed-path 0.12.3 + typed-path 0.13.0 typeid 1.0.3 unic-langid-impl 0.9.6 unic-langid-macros-impl 0.9.6 @@ -10061,7 +10100,7 @@ MIT License Used by: tracing-core 0.1.36 - zip 9.0.2 + zip 9.8.1 The MIT License (MIT)