Skip to content

chore(deps): refresh parsers and OCR with reviewed API migrations - #86

Merged
chaliy merged 7 commits into
mainfrom
dependabot/cargo/rust-dependencies-91d632f8fd
Nov 26, 2026
Merged

chaliy merged 7 commits into
mainfrom
dependabot/cargo/rust-dependencies-91d632f8fd

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Refresh PDF/OCR, MIME, archive, CLI and native Node dependencies while preserving existing extraction behavior. Integrate the API migration from #84: use mail-parser body/address views and preserve annotation exclusion with Hayro RenderContent::PAGE.

The locked versions include Hayro/hayro-syntax 0.9.0, mail-parser 1.0.2, ocrs 0.14.0, RTen 0.28.0, zip 9.8.2, clap 4.6.9, napi 3.16.2 and napi-derive 3.7.2. Email-enabled builds now require Rust 1.98; recorded as breaking in the changelog.

Why

The original dependency bump failed compilation. The earlier migration draft intentionally deferred Hayro mandatory SIMD and the rewritten MIME parser pending review. knowledge/security/native-dependencies.md now records registry owners/checksums, MSRVs, inspected SIMD/UTF-8 safety boundaries, accepted integration risks, and unchanged host-isolation/model-asset contracts.

This supersedes #84 and carries its migration commits; close the duplicate after this PR lands.

Before / After

Before: CI failed with unresolved mail-parser imports/fields and removed Hayro render settings.
After: just pre-pr passes: workspace lint/tests, knowledge/script checks, every Rust example, and dependency/license policy. Email tests preserve multipart text/attachment/address output and cover malformed transfer encoding and invalid UTF-8 at short/vector-boundary lengths. Existing PDF/OCR feature tests compile and pass where host helpers are available.

Risk

  • Medium: upstream parser/renderer major upgrades introduce Rust SIMD paths and lazy decoding. Focused integration review is documented; existing input/node/pixel/stream limits remain in force. The MIME parse and PDF render remain non-interruptible within their documented cooperative deadlines.

Checklist

  • Tests added or updated
  • Backward compatibility considered
  • Required dependency reviews and knowledge/changelog updated

dependabot Bot and others added 3 commits November 25, 2026 18:51
… 8 updates

Bumps the rust-dependencies group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [zip](https://github.com/zip-rs/zip2) | `9.3.0` | `9.6.0` |
| [hayro-syntax](https://github.com/LaurenzV/hayro) | `0.8.0` | `0.9.0` |
| [hayro](https://github.com/LaurenzV/hayro) | `0.8.0` | `0.9.0` |
| [ocrs](https://github.com/robertknight/ocrs) | `0.13.1` | `0.14.0` |
| [rten](https://github.com/robertknight/rten) | `0.26.0` | `0.28.0` |
| [mail-parser](https://github.com/stalwartlabs/mail-parser) | `0.11.9` | `1.0.1` |
| [napi](https://github.com/napi-rs/napi-rs) | `3.16.1` | `3.16.2` |
| [napi-derive](https://github.com/napi-rs/napi-rs) | `3.7.0` | `3.7.1` |

Updates `zip` from 9.3.0 to 9.6.0
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](zip-rs/zip2@v9.3.0...v9.6.0)

Updates `hayro-syntax` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/LaurenzV/hayro/releases)
- [Commits](LaurenzV/hayro@hayro-syntax-v0.8.0...hayro-syntax-v0.9.0)

Updates `hayro` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/LaurenzV/hayro/releases)
- [Commits](LaurenzV/hayro@hayro-v0.8.0...hayro-v0.9.0)

Updates `ocrs` from 0.13.1 to 0.14.0
- [Changelog](https://github.com/robertknight/ocrs/blob/main/CHANGELOG.md)
- [Commits](robertknight/ocrs@ocrs-v0.13.1...ocrs-v0.14.0)

Updates `rten` from 0.26.0 to 0.28.0
- [Changelog](https://github.com/robertknight/rten/blob/main/CHANGELOG.md)
- [Commits](robertknight/rten@rten-cli-v0.26.0...rten-cli-v0.28.0)

Updates `mail-parser` from 0.11.9 to 1.0.1
- [Release notes](https://github.com/stalwartlabs/mail-parser/releases)
- [Changelog](https://github.com/stalwartlabs/mail-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stalwartlabs/mail-parser/commits)

Updates `napi` from 3.16.1 to 3.16.2
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](napi-rs/napi-rs@napi-v3.16.1...napi-v3.16.2)

Updates `napi-derive` from 3.7.0 to 3.7.1
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](napi-rs/napi-rs@napi-derive-v3.7.0...napi-derive-v3.7.1)

---
updated-dependencies:
- dependency-name: zip
  dependency-version: 9.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: hayro-syntax
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: hayro
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: ocrs
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: rten
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: mail-parser
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: rust-dependencies
- dependency-name: napi
  dependency-version: 3.16.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: napi-derive
  dependency-version: 3.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
mail-parser 1.0: MessagePart/PartKind views replace the old field-based
Message/MessagePart; AddressList::mailboxes() replaces Address::List/Group;
decoded_checked() reports transfer-decoding problems that 0.11 recorded as
is_encoding_problem; decoded_len() replaces len().

hayro 0.9: InterpreterSettings.render_annotations is replaced by
render_content; RenderSettings gained fields, so build it with
..Default::default(). Annotations stay off (RenderContent::PAGE).
… 9 updates

Bumps the rust-dependencies group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [clap](https://github.com/clap-rs/clap) | `4.6.7` | `4.6.9` |
| [zip](https://github.com/zip-rs/zip2) | `9.3.0` | `9.8.1` |
| [hayro-syntax](https://github.com/LaurenzV/hayro) | `0.8.0` | `0.9.0` |
| [hayro](https://github.com/LaurenzV/hayro) | `0.8.0` | `0.9.0` |
| [ocrs](https://github.com/robertknight/ocrs) | `0.13.1` | `0.14.0` |
| [rten](https://github.com/robertknight/rten) | `0.26.0` | `0.28.0` |
| [mail-parser](https://github.com/stalwartlabs/mail-parser) | `0.11.9` | `1.0.1` |
| [napi](https://github.com/napi-rs/napi-rs) | `3.16.1` | `3.16.2` |
| [napi-derive](https://github.com/napi-rs/napi-rs) | `3.7.0` | `3.7.1` |



Updates `clap` from 4.6.7 to 4.6.9
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.6.7...clap_complete-v4.6.9)

Updates `zip` from 9.3.0 to 9.8.1
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](zip-rs/zip2@v9.3.0...v9.8.1)

Updates `hayro-syntax` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/LaurenzV/hayro/releases)
- [Commits](LaurenzV/hayro@hayro-syntax-v0.8.0...hayro-syntax-v0.9.0)

Updates `hayro` from 0.8.0 to 0.9.0
- [Release notes](https://github.com/LaurenzV/hayro/releases)
- [Commits](LaurenzV/hayro@hayro-v0.8.0...hayro-v0.9.0)

Updates `ocrs` from 0.13.1 to 0.14.0
- [Changelog](https://github.com/robertknight/ocrs/blob/main/CHANGELOG.md)
- [Commits](robertknight/ocrs@ocrs-v0.13.1...ocrs-v0.14.0)

Updates `rten` from 0.26.0 to 0.28.0
- [Changelog](https://github.com/robertknight/rten/blob/main/CHANGELOG.md)
- [Commits](robertknight/rten@rten-cli-v0.26.0...rten-cli-v0.28.0)

Updates `mail-parser` from 0.11.9 to 1.0.1
- [Release notes](https://github.com/stalwartlabs/mail-parser/releases)
- [Changelog](https://github.com/stalwartlabs/mail-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stalwartlabs/mail-parser/commits)

Updates `napi` from 3.16.1 to 3.16.2
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](napi-rs/napi-rs@napi-v3.16.1...napi-v3.16.2)

Updates `napi-derive` from 3.7.0 to 3.7.1
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](napi-rs/napi-rs@napi-derive-v3.7.0...napi-derive-v3.7.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.6.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: zip
  dependency-version: 9.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: hayro-syntax
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: hayro
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: ocrs
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: rten
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: mail-parser
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: rust-dependencies
- dependency-name: napi
  dependency-version: 3.16.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: napi-derive
  dependency-version: 3.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 26, 2026

@chaliy chaliy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocked on compilation and the existing dependency-review contract.

CI run https://github.com/everruns/markkit/actions/runs/45744752945 fails in both Lint and Test with 15 compiler errors from the mail-parser 1.0 and hayro 0.9 API changes. The dependency audit passes, but the aggregate Check fails. Draft #84 contains the earlier eml.rs/ocr.rs migration; reconcile that work with current main rather than landing the version bump alone.

knowledge/log.md (2026-11-03) explicitly defers hayro 0.9 and mail-parser 1.0 pending separate reviews. knowledge/security/native-dependencies.md still reviews hayro 0.8.0 with optional SIMD disabled; neither PR updates that review. Record the new versions' provenance, mandatory SIMD/unsafe-code changes, active dependency graph and licensing assessment before merge, then validate the email/PDF/OCR paths and require green CI.

Reviewed the diff, current repository guidance/knowledge and CI logs. No local tests were run: the Cloud workspace failed provisioning.

Comment thread Cargo.toml Resolved
Comment thread Cargo.toml Resolved
@chaliy chaliy changed the title chore(deps): bump the rust-dependencies group across 1 directory with 9 updates chore(deps): refresh parsers and OCR with reviewed API migrations Nov 26, 2026

@chaliy chaliy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The blocking API migrations and dependency reviews are complete. Current main is integrated; all PR checks are green, and all 11 fuzz targets pass. Full local pre-PR checks, email encoding/boundary regressions, optional OCR tests and CI's real-model OCR integration pass. Registry provenance, mandatory SIMD/unsafe-code boundaries and MSRVs are recorded. The all-features/all-target native graph retains HTTP-only AWS-LC and no active ring; dependency/license policy passes. Both requested-change threads are resolved.

@chaliy
chaliy merged commit 0acc450 into main Nov 26, 2026
26 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/rust-dependencies-91d632f8fd branch November 26, 2026 04:46
@chaliy chaliy mentioned this pull request Nov 26, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant