Skip to content

Update dependencies and switch UUID to v7#297

Merged
solarhell merged 1 commit into
masterfrom
update-deps-and-uuid-v7
Apr 30, 2026
Merged

Update dependencies and switch UUID to v7#297
solarhell merged 1 commit into
masterfrom
update-deps-and-uuid-v7

Conversation

@solarhell
Copy link
Copy Markdown
Owner

@solarhell solarhell commented Apr 30, 2026

Summary

  • Bump axum 0.8.8 → 0.8.9, tokio 1.50.0 → 1.52.1
  • Bump read-fonts 0.38.0 → 0.39.2, write-fonts 0.46.0 → 0.48.1, font-types 0.11.1 → 0.11.3
  • Bump uuid 1.22.0 → 1.23.1, rand 0.10.0 → 0.10.1
  • Switch UUID generation from v4 to v7 for time-ordered filenames

Supersedes #295 and #296.

Test plan

  • cargo build
  • cargo clippy --all-targets -- -D warnings
  • cargo test (47/47 passed)

Summary by CodeRabbit

发布说明

  • 杂项
    • 升级多个依赖库至最新版本,提升系统稳定性与安全性
    • 优化了输出文件的唯一标识生成算法

- Bump axum 0.8.8 → 0.8.9, tokio 1.50.0 → 1.52.1
- Bump read-fonts 0.38.0 → 0.39.2, write-fonts 0.46.0 → 0.48.1, font-types 0.11.1 → 0.11.3
- Bump uuid 1.22.0 → 1.23.1, rand 0.10.0 → 0.10.1
- Switch UUID generation from v4 to v7 for time-ordered filenames
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e9154706-90b4-4e25-b16a-2e052ef05479

📥 Commits

Reviewing files that changed from the base of the PR and between 2973952 and cbdfbe7.

📒 Files selected for processing (2)
  • Cargo.toml
  • src/main.rs

Walkthrough

将Rust依赖项升级至较新版本(axum、tokio、uuid、rand、font-types等),并相应地更新生成输出文件名时使用uuid::Uuid::now_v7()替代uuid::Uuid::new_v4()。

Changes

Cohort / File(s) Summary
Cargo.toml依赖升级
Cargo.toml
升级axum、tokio、font-types、read-fonts、write-fonts至新版本;升级uuid至1.23.1并切换UUID feature从v4至v7;升级rand至0.10.1。
UUID生成方法更新
src/main.rs
encrypt和encrypt_plus函数改用uuid::Uuid::now_v7()替代uuid::Uuid::new_v4()生成输出文件名。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 小兔来报喜,版本升升升,
UUID换新式,时间之见证,
依赖皆更新,代码更精进!✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确总结了拉取请求的主要变更:更新依赖项和将UUID从v4切换到v7。
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-deps-and-uuid-v7

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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

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

@solarhell solarhell merged commit 0cd7318 into master Apr 30, 2026
4 checks passed
@solarhell solarhell deleted the update-deps-and-uuid-v7 branch April 30, 2026 03:26
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