Skip to content

Bump the rust-dependencies group in /src-tauri with 2 updates - #809

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/src-tauri/rust-dependencies-d6a7e4e2c7
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/src-tauri/rust-dependencies-d6a7e4e2c7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps the rust-dependencies group in /src-tauri with 2 updates: printpdf and sha2.

Updates printpdf from 0.12.14 to 0.13.0

Changelog

Sourced from printpdf's changelog.

0.13.0 - 2026-11-25

Added

  • The features text_layout_hyphenation_all and html_hyphenation_all embed the hyphenation dictionaries of all 82 languages. text_layout_hyphenation, and so html, hyphenate English (US) only, which makes the binary 2.9 MB smaller (the WebAssembly demo was 13.8 MB).

  • ppdf, a command-line tool in ppdf/ (its own crate, not part of the printpdf package). It converts a PDF to JSON and back so the document can be edited with jq, prints text, text boxes, SVG pages, fonts and images, and renders HTML to PDF. See ppdf/README.md.

  • web/minimal.html: a single HTML file that makes a PDF in the browser with two wasm calls. It imports the package of the latest release from the demo site, and is deployed with it. Described in docs/API.md.

  • docs/HTML.md documents the HTML and CSS that from_html supports. It replaces SYNTAX.md, which described an API that no longer exists.

  • The library denies unwrap, expect, panic!, unreachable!, todo!, indexing and string slicing outside tests (clippy::unwrap_used and its relatives, set in src/lib.rs). A CI job runs clippy with --all-features, --no-default-features and --no-default-features --features text_layout. On wasm32-unknown-unknown a panic traps and cannot be caught, so a failure has to come back as an Err, a warning or a skipped item.

  • More than 180 regression tests for hostile input in tests/no_panic_*.rs: crafted and mutated PDFs, fonts, images, dates, form values, CSS sizes and JSON of the wasm API.

  • GeneratePdfOptions::show_page_numbers, header_text, footer_text and skip_first_page draw a header, a footer and page numbers on every page (azul-layout 0.0.21; they drew nothing before).

  • Form XObjects are part of the document model. A form read from a PDF is an XObject::Form with its own ops, /BBox and resources, and it is written back as a form. extract_text, extract_text_boxes and to_svg read the text and drawing inside forms (PDFs from macOS Quartz draw their whole page in one form; their text was empty before). FormXObject::new, with_matrix, with_resources, with_group, from_content_stream and PdfDocument::add_form create a form in code, for example a watermark that several pages draw.

  • Variable fonts from Rust code (feature text_layout): font_variation_axes lists the axes of a font, instantiate_variable_font_bytes creates a static font at chosen axis values, and PdfDocument::add_variable_font registers such an instance. TrueType (gvar) and CFF2 fonts work; a CFF2 instance is converted to CFF1, which a PDF can embed. The types are FontVariationTag, FontVariationAxis, FontVariationSettings and VariableFontError. Based on #278 by NicTanghe.

  • shape_line turns a string into positioned glyphs in one font without HTML (feature text_layout, not html): script and direction come from the text, kerning and mark offsets are applied, and the result is a PlacedLine with the PlacedGlyphs and the width, ready for show_placed_glyphs. LineShaper shapes many lines in one font without copying the font each time. examples/shape_line.rs shows Latin, Arabic and mixed-direction lines (#229, #230).

  • Patterns as fill and stroke colors. Pattern::Tiling (a repeated drawing, colored or uncolored) and Pattern::Shading (a gradient that fills or strokes the shape) are registered with PdfDocument::add_pattern and selected with Op::SetFillPattern and Op::SetOutlinePattern. A PDF that sets /Pattern cs /P1 scn keeps its fills and strokes when it is read, and patterns are written and read back in pages and forms. A pattern that has no model, such as a mesh shading, is kept as Pattern::External and written as it was read. The SVG preview draws a pattern as one solid color, with a warning. See examples/patterns.rs.

  • Preflight (printpdf::preflight): preflight_bytes, PdfDocument::preflight and PdfDocument::preflight_with_options check a PDF and return a PreflightReport of findings, each with a severity, a stable rule id (RULES lists the 97 ids), a page, an object and, for some PDF/A-1b rules, the clause of the standard. Profiles: General (file structure, page tree, resources, colour spaces such as the malformed one behind #211, fonts, content stream balance), PdfA1b, PdfA2b, PdfX1a_2001 and PdfX3_2002 (embedded fonts, output intent, XMP and PDF/A identification, transparency, layers, encryption, JavaScript, LZW, page boxes, Info dictionary). The work and the number of findings are bounded, and hostile files do not panic (tests/no_panic_preflight.rs). It is not a certification and does not replace veraPDF or Acrobat Preflight; NOT_CHECKED lists what it does not look at.

  • ppdf check FILE [--profile general|pdfa-1b|pdfa-2b|pdfx-1a|pdfx-3] [--json] prints the report. Exit code 0: no errors, 1: errors found, 2: the file cannot be read.

  • PDF/A-1b and PDF/A-2b files that pass printpdf's own preflight, and PDF/X-1a:2001 with its output intent. Saving a document with PdfConformance::A1B_2005_PDF_1_4, A2B_2011_PDF_1_7 (and the other PDF/A variants) writes: XMP metadata with pdfaid:part and pdfaid:conformance and the title, author, subject, keywords, creator, producer and dates of the Info dictionary as the same values; an output intent with /S /GTS_PDFA1, /OutputConditionIdentifier and an embedded sRGB profile (the FOGRA39 profile when the document uses DeviceCMYK and no DeviceRGB); the header version 1.4 (PDF/A-1) or 1.7 (PDF/A-2 and 3); and the /Print flag on link annotations. tests/pdfa_output.rs checks this against the preflight and, when verapdf is installed, against veraPDF 1.30 (--flavour 1b and 2b): the oracle document with built-in fonts only, with a TrueType font subset and complete, with and without stream compression, with grey, RGB or CMYK-only colour, and for PDF/A-2b with transparency pass. The PDF/X files, Symbol and ZapfDingbats, level a and u, and CFF fonts in PDF/A-1 are not covered.

  • PDF/A-1 files get an sRGB output intent profile of ICC version 2.1, built at save time from the sRGB colorants and transfer function (PDF/A-1 is based on ICC version 2, and veraPDF rejects the bundled version 4 profile there). PDF/A-2 and 3 use the version 4 profile.

  • A PDF/A document whose output intent is the CMYK profile (it uses DeviceCMYK and no DeviceRGB) has the RGB /C colour of its link annotations left out, with a warning, because PDF/A allows an annotation colour only with an RGB output intent.

  • PDF/A-1 files get a /CIDSet in the descriptor of every subset TrueType CID font.

  • The 14 standard fonts are embedded when the conformance level requires embedded fonts (all PDF/A and PDF/X variants, PdfConformance::must_embed_fonts). They are written as TrueType subsets with the same resource names, WinAnsiEncoding and codes in the content stream, so extracted text does not change. Symbol and ZapfDingbats stay unembedded because the font files that printpdf bundles for them are not the standard glyph sets; the save warns. The save also warns, naming the characters, when a bundled font has no glyph for a character of the text.

  • Save warnings for content that the chosen standard forbids; the content is written as it is. Transparency (/CA and /ca below 1, soft masks, blend modes, transparency groups) in PDF/A-1, PDF/X-1a and PDF/X-3; layers in PDF/A-1, PDF/X-1a and PDF/X-3; the LZW filter, JavaScript and launch actions in PDF/A; JPEG 2000 and JBIG2 in PDF/A-1; embedded files in PDF/A-1 and 2; DeviceCMYK together with DeviceRGB in PDF/A (one output intent cannot cover both); DeviceRGB in PDF/X-1a.

  • PdfConformance::is_pdfa, pdfa_part, pdfa_level, must_embed_fonts and is_transparency_allowed.

  • A saved PDF/A file is read back as the PDF/A variant that its XMP names. It was Custom before, because the variant was only in /GTS_PDFXVersion.

Changed

  • Reading /Pattern cs /P1 scn gives Op::SetFillPattern (and Op::SetOutlinePattern for CS and SCN). Before, the name was read as the gray level 0, so the fill became black, and cs was read as Op::SetColorSpaceFill. A form that sets a pattern from its own resources is now read as XObject::Form instead of being kept as XObject::External. PdfResources and PageState have a new field, patterns and pattern_spaces.
  • The README no longer lists conformance checking as unsupported (it is a subset, see the preflight) and no longer says that PDF/X-3:2002 is covered.
  • Mm and Pt compare NaN equal to NaN and an infinity equal to itself, so x == x holds for every value as Eq requires. Before, Mm(f32::NAN) == Mm(f32::NAN) was false (#292).
  • Pin every GitHub Action to a commit SHA, give workflow tokens no default permissions, and lint the workflows with zizmor. Dependabot keeps the pins up to date (#296).
  • Dependabot opens one pull request for all GitHub Actions updates and one for the minor and patch updates of each crate, instead of one per dependency. Major crate updates stay separate.
  • Move the web demo sources to web/, the documentation to docs/ and gen.sh to scripts/gen-examples.sh. scripts/build-demo.sh assembles the demo in _site/.
  • The crates.io package excludes web/, docs/ and ppdf/.
  • docs/API.md now documents all seven functions of the wasm API. It listed five, used wrong option names (subsetFonts instead of subset_fonts, pageWidth instead of page_width) and a title input that does not exist.
  • The README example no longer shows <head><header> and {builtin:pagenum}, which the layout engine does not implement.
  • Write this changelog in one format for every release, and add the releases that had no entry.
  • RawImage::encode_to_bytes, apply_dithering and resize_to_fit_size return Err when the pixel buffer is not exactly width * height * channels samples, and encode_to_bytes also for an image of size 0. They used to panic or abort inside the encoder.
  • xml_to_pdf_pages and xml_to_pdf_pages_debug return Err when the page, or the area inside the margins, is NaN or outside 1 to 1,000,000 pt.
  • A page of a parsed document that cannot be read becomes an empty page with a warning instead of failing the whole document.
  • Breaking: FormXObject has ops, bbox and its own resources (a PdfResources) instead of bytes; its JSON changes. Forms that a PDF contains are XObject::Form and no longer XObject::External. A form that cannot be read without loss stays External, with an info message.
  • to_svg multiplies nested cm operators. It replaced the transform before.
  • save warns when a variable font added with add_font is embedded at its default instance. Use add_variable_font to choose the axes.
  • Pages and forms are read and written by the same functions: both use a PdfResources as their scope for fonts, images, graphics states and shadings.
  • printpdf depends on glyph-names and encoding_rs directly (both were in the tree through allsorts).
  • Pt and Mm order by f32::total_cmp (-0.0 sorts before 0.0, NaN last), so == and cmp can differ within the 0.0005 tolerance of ==. Px addition and subtraction saturate. PageState has two more public fields, untracked_saves and untracked_marked_content.

... (truncated)

Commits
  • c5e34a7 Release 0.13.0
  • 35b78d1 Merge remote-tracking branch 'origin/master' into azul-0.0.21
  • 0e1f818 pdfa_output: read pdftotext as UTF-8 (Windows wrote the console code page)
  • 10786d1 Merge remote-tracking branch 'origin/master' into azul-0.0.21
  • b4f9a5e Merge branch 'pdfa-vera'
  • 871bf1b PDF/A: pass veraPDF 1.30 for 1b and 2b on the oracle documents
  • 92da08b Bundled fonts: add U+201D (the Windows-1252 table skipped it), keep the Helve...
  • 93647a6 pdfa_output: run veraPDF on the A-1b and A-2b files when it is installed
  • ceca9d6 conformance docs: the bundled sRGB profile is ICC v4, PDF/A-1 expects v2
  • afd20ec Write PDF/A-1b and PDF/A-2b with XMP, output intent, embedded built-in fonts;...
  • Additional commits viewable in compare view

Updates sha2 from 0.11.0 to 0.11.2

Commits
  • 3ae6b7f Release sha2 v0.11.2 (#954)
  • a567b76 sha2: refactor software backends (#949)
  • ed176fb sha2: fix sha512/x86_avx2 backend for 32-bit targets (#951)
  • 50a7ea6 sha2: refactor riscv_zknh backends (#929)
  • 7a1f8db sha2: respect sha2_backend precedence over sha2_256/512_backend (#948)
  • c50eeb4 ci: bump rust-lang/crates-io-auth-action from 1.0.5 to 1.0.6 (#938)
  • 6fa4459 sha2: remove unreachable panic and fix compilation error in the SHA-512 AVX2 ...
  • 57c829b sha2: enable BMI1 and BMI2 in the SHA-512 AVX2 backend (#940)
  • 23d8e40 sha3: fix docs for Sha3_512 (#939)
  • 7bd9889 sha2: fix SHA-512 backend selection (#935)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the rust-dependencies group in /src-tauri with 2 updates: [printpdf](https://github.com/fschutt/printpdf) and [sha2](https://github.com/RustCrypto/hashes).


Updates `printpdf` from 0.12.14 to 0.13.0
- [Release notes](https://github.com/fschutt/printpdf/releases)
- [Changelog](https://github.com/fschutt/printpdf/blob/master/CHANGELOG.md)
- [Commits](fschutt/printpdf@v0.12.14...v0.13.0)

Updates `sha2` from 0.11.0 to 0.11.2
- [Commits](RustCrypto/hashes@sha2-v0.11.0...sha2-v0.11.2)

---
updated-dependencies:
- dependency-name: printpdf
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-dependencies
- dependency-name: sha2
  dependency-version: 0.11.2
  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 requested a review from smshagor-dev as a code owner November 30, 2026 04:49
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 30, 2026
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.

0 participants