Skip to content

build(deps): update fitparser to 0.12 and refresh the lockfile - #2622

Merged
l0gicgate merged 3 commits into
mainfrom
build/2616-update-dependencies
Nov 24, 2026
Merged

l0gicgate merged 3 commits into
mainfrom
build/2616-update-dependencies

Conversation

@l0gicgate

@l0gicgate l0gicgate commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Updates fitparser from 0.11 to 0.12 and moves every other dependency to its latest semver-compatible release (cargo update, 140 packages, including the gtk-rs, GLib and GStreamer bindings).

Two patch releases changed APIs Strata uses:

  • gio 0.22.11 returns AppInfo::executable() as an Option. The Nautilus check in portal setup and the Open With search text now treat a missing executable as no match or empty text.
  • html5gum 0.9.2 emits <?…> as a processing-instruction token instead of a parse error. HTML has no processing instructions, so they still mark an HTML preview malformed and it falls back to source, as it did before. A new case in the existing malformed-HTML test covers this. It uses <?php …?>, because html5gum still reports xml targets as errors.

zstd, zstd-safe and zstd-sys stay at 0.14.3, 8.2.0 and 2.1.2+zstd.1.5.7. zstd-sys 2.1.3 declares BSD-3-Clause AND BSD-2-Clause, which deny.toml does not allow. Allowing it is a separate licensing decision. THIRD_PARTY_LICENSES.md now names kamadak-exif 0.6.2, which has the same BSD-2-Clause license text. The minimum versions of gio and html5gum in Cargo.toml match the versions the code now needs.

None of the five advisories in #2616 has a release to update to:

  • zip 8.6.0 comes only from docx-rs 0.4.22, its latest release, which requires zip ^8.6. docx-rs reads in-memory archives through ZipArchive::by_name only and builds zip 8 with deflate alone.
  • chrono comes only from fitparser, and 0.12.0 still depends on it.

deny.toml ignores them with those reasons, the same change #2618 made on h5-integration, so main passes cargo deny again. zip stays at 9.7.3 because 9.8 needs zstd-sys 2.1.3.

packaging/media-runtime patches the GStreamer C sources and is opt-in, so these binding bumps don't affect it.

Visual evidence

N/A: dependency updates with no intended change to the interface.

How to test

  1. Run cargo deny check.
  2. Open an HTML file that starts with <?php echo 1; ?> in the preview.
  3. Open the Open With dialog and search for an app by its executable name.

Expected result: cargo deny reports advisories ok, bans ok, licenses ok, sources ok. The HTML preview falls back to source as malformed, as on main. Open With search still finds apps by executable.

Related issue

Fixes #2616

Update fitparser to 0.12.0 and every semver-compatible dependency.

- gio 0.22.11 returns `AppInfo::executable()` as an `Option`; the
  Nautilus check and the Open With search haystack now handle a missing
  executable.
- html5gum 0.9.2 emits processing instructions as tokens instead of a
  parse error. They still mark an HTML preview malformed, as before.
- zstd, zstd-safe and zstd-sys stay at 0.14.3, 8.2.0 and 2.1.2:
  zstd-sys 2.1.3 declares BSD-2-Clause, which deny.toml does not allow.
- THIRD_PARTY_LICENSES.md names kamadak-exif 0.6.2.

The chrono and zip 8 advisories have no release to update to; #2618
ignores them.

Refs #2616
@github-actions github-actions Bot added the build Build system or packaging changes label Nov 19, 2026
wmfeht and others added 2 commits November 23, 2026 19:02
RUSTSEC-2026-0543 (chrono unmaintained) has no patched version and comes
only through fitparser. RUSTSEC-2026-0545 to 0548 hit zip 8.6.0, which
only docx-rs 0.4.22, its latest release, still pins. Strata's own zip
already resolves to the patched 9.1.3.

Refs #2616

(cherry picked from commit 36d23f1)
Holds zip at 9.7.3: 9.8 needs zstd-sys 2.1.3, whose BSD-2-Clause
component deny.toml does not allow.

Refs #2616
@l0gicgate

Copy link
Copy Markdown
Contributor Author

Review and cleanup

Merged main: already up to date at 9ad4b824d, so no merge commit was needed.

Why Dependency and spelling policy was still failing. #2618 merged into h5-integration, not main, so this branch never got the advisory ignores. No upstream release fixes them yet. docx-rs 0.4.22 is still the latest and still pins zip ^8.6, and fitparser 0.12.0 still depends on chrono.

Review against the description and #2616

  • fitparser 0.12: confirmed. sandbox_helper::route::tests::fit_* pass.
  • gio 0.22.11 AppInfo::executable() → Option: both callers (portal_setup::detected_nautilus, open_with::app_haystack) treat a missing executable as no match or empty text. Confirmed.
  • html5gum 0.9.2 processing instructions: Token::ProcessingInstruction marks the document malformed, and the added case in html_contentless_and_malformed_documents_fall_back_to_source fails without it. Confirmed.
  • zstd held at 0.14.3 / 8.2.0 / 2.1.2: still held.
  • The ignore reasons in deny.toml match the code. cargo tree -e features -i [email protected] shows only deflate features (no aes-crypto, no legacy-zip). docx-rs 0.4.22 reads in-memory archives through ZipArchive::by_name only and never calls extract or ZipStreamReader.
  • The PR body is updated: it no longer says the policy check stays red, and it now says Fixes #2616, because main passes cargo deny once this lands.

Fixes pushed

  • bdd27923b fix(deps): ignore the unfixable chrono and docx-rs zip 8 advisories: cherry-picked from fix(deps): ignore the unfixable chrono and docx-rs zip 8 advisories #2618 (36d23f1a3) so main gets the same ignores.
  • 9635f7ae5 build(deps): refresh the lockfile to the latest compatible releases: 14 patch updates since Nov 19 (cc, cookie, form_urlencoded, globset, hashbrown, ignore, landlock, pin-project-lite, toml/toml_edit/toml_parser, url, walkdir, zcheapstr). zip stays at 9.7.3, because 9.8.x needs zstd 0.14.4 → zstd-sys 2.1.3 (BSD-3-Clause AND BSD-2-Clause).

Validation

  • cargo deny check: advisories ok, bans ok, licenses ok, sources ok
  • ./scripts/test-headless.py -- fit document::tests::html portal_setup open_with sandbox services::search preferences:: theme::: 705 passed, 0 failed
  • ./scripts/quality.sh fmt: clean
  • Not run locally: quality.sh clippy, full suites, qa.sh. Only the lockfile and deny.toml changed, and CI's lint and test shards are green.

Follow-ups outside this PR

  • To take zip 9.8.x (EOCD validation read fixes), deny.toml needs a [[licenses.exceptions]] for zstd-sys allowing BSD-2-Clause, plus a notice in THIRD_PARTY_LICENSES.md, like arrayref and kamadak-exif.
  • Semver-major updates are available but not taken here: ashpd 0.14 / zbus 6 (would retire the zbus 5 ignores), resvg 0.50, quick-xml 0.42, rquickjs 0.14, sevenz-rust2 0.25.

CI: all checks green on 9635f7ae5 as of 01:27 UTC.

@l0gicgate
l0gicgate merged commit 3a95c67 into main Nov 24, 2026
15 checks passed
@l0gicgate
l0gicgate deleted the build/2616-update-dependencies branch November 24, 2026 01:39
wmfeht added a commit to wmfeht/strata-feature-map that referenced this pull request Nov 29, 2026
Sync lgse/strata#2622–#2803: animated WebP, plain Copy path and pasted shell paths, chooser global search, rclone file placement, monitor bursts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build system or packaging changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cargo deny fails on chrono and zip 8 advisories (RUSTSEC-2026-0543, 0545-0548)

2 participants