-
Notifications
You must be signed in to change notification settings - Fork 19
Update font dependencies: read-fonts 0.38.0, write-fonts 0.46.0 #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,58 @@ | ||
| [package] | ||
| name = "font_obfuscator" | ||
| version = "0.1.0" | ||
| edition = "2024" | ||
| [dependencies] | ||
| axum = "0.8.8" | ||
| tokio = { version = "1.50.0", features = ["full"] } | ||
| serde = { version = "1.0.228", features = ["derive"] } | ||
| serde_json = "1.0.149" | ||
| font-types = "0.11.0" | ||
| read-fonts = "0.37.0" | ||
| write-fonts = "0.45.0" | ||
| base64 = "0.22.1" | ||
| uuid = { version = "1.22.0", features = ["v4"] } | ||
| rand = "0.10.0" | ||
| thiserror = "2.0.18" | ||
| tower-http = { version = "0.6.8", features = ["cors"] } | ||
| tracing = "0.1.44" | ||
| tracing-subscriber = "0.3.22" | ||
| ttf2woff2 = { version = "0.11.0", default-features = false } | ||
| [dev-dependencies] | ||
| tempfile = "3" | ||
| [lints.rust] | ||
| unsafe_code = "forbid" | ||
| unused_must_use = "deny" | ||
| missing_debug_implementations = "warn" | ||
| [lints.clippy] | ||
| # 正确性 | ||
| correctness = { level = "deny", priority = -1 } | ||
| # 性能 | ||
| perf = { level = "warn", priority = -1 } | ||
| # 可疑代码 | ||
| suspicious = { level = "warn", priority = -1 } | ||
| # 生产级严格 lint | ||
| enum_glob_use = "warn" | ||
| cast_possible_truncation = "warn" | ||
| cast_sign_loss = "warn" | ||
| cast_possible_wrap = "warn" | ||
| needless_pass_by_value = "warn" | ||
| redundant_closure_for_method_calls = "warn" | ||
| cloned_instead_of_copied = "warn" | ||
| inefficient_to_string = "warn" | ||
| semicolon_if_nothing_returned = "warn" | ||
| uninlined_format_args = "warn" | ||
| trivially_copy_pass_by_ref = "warn" | ||
| implicit_clone = "warn" | ||
| manual_let_else = "warn" | ||
| unused_self = "warn" | ||
| return_self_not_must_use = "warn" | ||
| doc_markdown = "warn" | ||
| needless_raw_string_hashes = "warn" | ||
| [package] | ||
| name = "font_obfuscator" | ||
| version = "0.1.0" | ||
| edition = "2024" | ||
|
|
||
| [dependencies] | ||
| axum = "0.8.8" | ||
| tokio = { version = "1.50.0", features = ["full"] } | ||
| serde = { version = "1.0.228", features = ["derive"] } | ||
| serde_json = "1.0.149" | ||
| font-types = "0.11.1" | ||
| read-fonts = "0.38.0" | ||
| write-fonts = "0.46.0" | ||
| base64 = "0.22.1" | ||
| uuid = { version = "1.22.0", features = ["v4"] } | ||
| rand = "0.10.0" | ||
| thiserror = "2.0.18" | ||
| tower-http = { version = "0.6.8", features = ["cors"] } | ||
| tracing = "0.1.44" | ||
| tracing-subscriber = "0.3.23" | ||
| ttf2woff2 = { version = "0.11.0", default-features = false } | ||
|
|
||
| [dev-dependencies] | ||
| tempfile = "3" | ||
|
|
||
| [lints.rust] | ||
| unsafe_code = "forbid" | ||
| unused_must_use = "deny" | ||
| missing_debug_implementations = "warn" | ||
|
|
||
| [lints.clippy] | ||
| # 正确性 | ||
| correctness = { level = "deny", priority = -1 } | ||
|
|
||
| # 性能 | ||
| perf = { level = "warn", priority = -1 } | ||
|
|
||
| # 可疑代码 | ||
| suspicious = { level = "warn", priority = -1 } | ||
|
|
||
| # 生产级严格 lint | ||
| enum_glob_use = "warn" | ||
| cast_possible_truncation = "warn" | ||
| cast_sign_loss = "warn" | ||
| cast_possible_wrap = "warn" | ||
| needless_pass_by_value = "warn" | ||
| redundant_closure_for_method_calls = "warn" | ||
| cloned_instead_of_copied = "warn" | ||
| inefficient_to_string = "warn" | ||
| semicolon_if_nothing_returned = "warn" | ||
| uninlined_format_args = "warn" | ||
| trivially_copy_pass_by_ref = "warn" | ||
| implicit_clone = "warn" | ||
| manual_let_else = "warn" | ||
| unused_self = "warn" | ||
| return_self_not_must_use = "warn" | ||
| doc_markdown = "warn" | ||
| needless_raw_string_hashes = "warn" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 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:
Repository: solarhell/font_obfuscator
Length of output: 672
🏁 Script executed:
cat -n Cargo.toml | head -30Repository: solarhell/font_obfuscator
Length of output: 983
🏁 Script executed:
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