Skip to content

Update font dependencies: read-fonts 0.38.0, write-fonts 0.46.0#290

Merged
solarhell merged 1 commit intomasterfrom
chore/upgrade-font-deps
Mar 23, 2026
Merged

Update font dependencies: read-fonts 0.38.0, write-fonts 0.46.0#290
solarhell merged 1 commit intomasterfrom
chore/upgrade-font-deps

Conversation

@solarhell
Copy link
Copy Markdown
Owner

@solarhell solarhell commented Mar 23, 2026

Summary

  • Upgrade read-fonts from 0.37.0 to 0.38.0
  • Upgrade write-fonts from 0.45.0 to 0.46.0
  • Upgrade font-types from 0.11.0 to 0.11.1
  • Upgrade tracing-subscriber from 0.3.22 to 0.3.23

Both read-fonts and write-fonts must be upgraded together to avoid type mismatch errors caused by multiple versions of read-fonts in the dependency graph (fixes the CI failures in #288 and #289).

Test plan

  • cargo check passes
  • All 47 tests pass
  • CI passes

Summary by CodeRabbit

变更说明

  • 维护工作
    • 更新多个核心依赖库至最新版本,提升应用的稳定性和性能。

…s 0.11.1, tracing-subscriber 0.3.23

Upgrade read-fonts and write-fonts together to avoid type mismatch errors
caused by multiple versions of read-fonts in the dependency graph.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 23, 2026

概述

更新了 Cargo.toml 中四个依赖项的版本:font-types (0.11.0 → 0.11.1)、read-fonts (0.37.0 → 0.38.0)、write-fonts (0.45.0 → 0.46.0) 和 tracing-subscriber (0.3.22 → 0.3.23)。

变更

内容 / 文件 摘要
依赖版本更新
Cargo.toml
升级了四个依赖包的版本:font-types、read-fonts、write-fonts 和 tracing-subscriber。包元数据、开发依赖和代码检查配置保持不变。

代码审查工作量估计

🎯 1 (琐碎) | ⏱️ ~3 分钟

🐰 依赖悄悄升级,版本在指尖舞动,

四行数字闪烁光芒,无需费力细思量,

项目焕然一新,稳定向前方!✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确地总结了主要变更,明确指出了两个关键的字体依赖升级。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-font-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Cargo.toml`:
- Around line 11-13: Cargo.toml lists non-existent versions for the crates;
update the dependency versions for read-fonts and write-fonts to the published
versions (read-fonts = "0.37.0" and write-fonts = "0.45.0") or explicitly mark
them as pre-release/path/git dependencies if you intended to use unpublished
builds; locate the read-fonts and write-fonts entries in Cargo.toml and either
change the version strings to "0.37.0" and "0.45.0" respectively or replace them
with proper git/path specifications and add a brief comment explaining the
choice.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 805a04d5-9c8b-47da-8635-710a7346655d

📥 Commits

Reviewing files that changed from the base of the PR and between e1147bf and 62a588f.

📒 Files selected for processing (1)
  • Cargo.toml

Comment on lines +11 to +13
font-types = "0.11.1"
read-fonts = "0.38.0"
write-fonts = "0.46.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

read-fonts 0.38.0 changelog breaking changes

💡 Result:

No public changelog or specific breaking changes found for read-fonts version 0.38.0. The latest released version on crates.io is 0.37.0 (published 2026-01-07). Version 0.38.0 does not appear in crates.io version history, docs.rs documentation, or the project repository https://github.com/googlefonts/fontations releases/tags. References to 0.38.0 exist in forks like fontcull-read-fonts (likely a dependency fork) and a yanked skrifa 0.38.0 that exposed breaking changes in related crates (read-fonts 0.35.1 also yanked), but no details or official release for read-fonts 0.38.0 as of 2026-03-23.

Citations:


🌐 Web query:

write-fonts 0.46.0 changelog breaking changes

💡 Result:

No changelog or breaking changes found for write-fonts version 0.46.0. The latest released version on crates.io is 0.45.0 (published 2026-01-07). The GitHub repository (googlefonts/fontations) lists tags up to write-fonts-v0.45.0, with no releases or tags for 0.46.0 as of 2026-03-23. Version lists on crates.io and licenses.dev also do not include 0.46.0.

Citations:


🏁 Script executed:

#!/bin/bash
# 描述:检查 font-types、read-fonts 和 write-fonts 的安全公告

for package in "font-types" "read-fonts" "write-fonts"; do
  echo "=== Checking security advisories for $package ==="
  gh api graphql -f query='
  {
    securityVulnerabilities(first: 5, ecosystem: RUST, package: "'"$package"'") {
      nodes {
        advisory {
          summary
          severity
          publishedAt
        }
        vulnerableVersionRange
        firstPatchedVersion {
          identifier
        }
      }
    }
  }'
done

Repository: solarhell/font_obfuscator

Length of output: 672


🏁 Script executed:

cat -n Cargo.toml | head -30

Repository: solarhell/font_obfuscator

Length of output: 983


🏁 Script executed:

grep -r "read-fonts\|write-fonts" --include="*.toml" --include="*.rs"

Repository: solarhell/font_obfuscator

Length of output: 298


修正依赖版本号:指定的 read-fonts 和 write-fonts 版本在官方仓库中不存在。

Cargo.toml 指定的 read-fonts 0.38.0 和 write-fonts 0.46.0 在 crates.io 中不存在。根据官方记录,这些库的最新版本分别为 0.37.0 和 0.45.0(均发布于 2026-01-07)。项目将无法通过版本解析,导致编译失败。

请更正版本号为存在的版本,或说明这些是否为预发布版本/本地依赖。

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Cargo.toml` around lines 11 - 13, Cargo.toml lists non-existent versions for
the crates; update the dependency versions for read-fonts and write-fonts to the
published versions (read-fonts = "0.37.0" and write-fonts = "0.45.0") or
explicitly mark them as pre-release/path/git dependencies if you intended to use
unpublished builds; locate the read-fonts and write-fonts entries in Cargo.toml
and either change the version strings to "0.37.0" and "0.45.0" respectively or
replace them with proper git/path specifications and add a brief comment
explaining the choice.

@solarhell solarhell merged commit 2973952 into master Mar 23, 2026
4 checks passed
@solarhell solarhell deleted the chore/upgrade-font-deps branch March 23, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant