Repository navigation
fix(desktop): update vulnerable Cargo dependencies - #6148
Conversation
Update serde_with and time beyond their published advisory ranges, with compatible serde pins. Align the desktop MSRV with the existing locked graph's Rust 1.88 requirements and use equivalent Option helpers enabled by the new declared minimum. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe desktop crate now requires Rust 1.88 and pins newer ChangesDesktop crate updates
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The desktop dependency versions are updated, and the inspected build workflows do not use an older Rust toolchain. No concrete merge-blocking issue is established in the available evidence. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 5 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 64 / 80데스크톱 Rust 잠금 파일에 걸린 보안 경고 두 개를 지우는 수정이다. 앱 설정, 같이 넣는 모델 프록시, 지원 운영체제의 최소 버전은 그대로다. 베이스는
라인 - 라인 - 메인테이너의 판단이 필요한 지점 이 PR은 아직 draft다. CodeRabbit은 draft라서 리뷰를 건너뛰었다. 본문은 Windows에서만 보안 체크는 비어 있다. 비밀, 로그인, 기본 권한을 바꾸는 코드는 없다. 두 크레이트 버전은 권고 범위 밖이다. 같은 수정의 다른 열린 PR은 없고, 닫을 중복도 없다. 너의 추천 draft를 풀고 CI가 통과하면 머지하면 된다. Rust 1.88 선언은 이미 잠긴 그래프와 이번 패치 버전 모두와 맞다. 트레이와 위젯 조건은 동작을 바꾸지 않는다. CI에서 이 댓글은 grok-bot이 작성했습니다 |
Ingwannu
left a comment
There was a problem hiding this comment.
Approved at exact head ccdb79c814ed362e8c5725bf9a09bc7b18c716c0. The Rust 1.88 declaration matches the updated lockfile/toolchain floor; the Option::is_none_or rewrites preserve the prior None/map_or semantics; serde/serde_json pins and the serde_with/time lock updates are internally consistent. Exact-head Cross-platform CI run 36364058224 completed successfully across all four Linux shards, both macOS shards, gates, macOS widget+bundle, and desktop shell. Windows full shards are policy-skipped, but the Windows keyring and service lifecycle jobs passed. No blocking source or lockfile inconsistency found.
Summary
The desktop lockfile selects
serde_with3.1.0 andtime0.3.44, inside the affected ranges of GHSA-7gcf-g7xr-8hxj and GHSA-r6v5-fh4h-64xc. Update them to 3.23.0 and 0.3.55 and move the exact serde/serde_json pins to the compatible 1.0.229/1.0.151 pair.Declare Rust 1.88 as the desktop minimum. The existing locked graph already requires 1.88 through
tauri -> imageandreqwest -> url -> idna -> idna_adapter -> icu_normalizer; the previous 1.77 declaration did not describe a buildable locked graph. This changes the source-build requirement, not installed app configuration or the minimum operating-system versions. Keep dependency alerts open until the patched graph lands; no advisory suppression is added.The higher declared MSRV enables Clippy's
is_none_orsimplifications. Apply the equivalent forms in the tray, supervisor and macOS widget conditions without changing their default behavior.Verification
cargo metadata --locked --filter-platform x86_64-pc-windows-msvc: resolved; target advisory packages are outside the affected ranges.cargo +1.88.0 test --locked --manifest-path desktop/src-tauri/Cargo.toml -j 2: 151 passed, 0 failed on Windows; binary/doc-test targets also passed (0 tests).cargo +stable fmt --manifest-path desktop/src-tauri/Cargo.toml --check: passed with installed Rust 1.98.1.cargo +1.88.0 clippy --locked --manifest-path desktop/src-tauri/Cargo.toml --all-targets -j 4 -- -D warnings: passed after the MSRV-related simplifications.bun scripts/structure-ssot.ts: passed.bun scripts/privacy-scan.ts: passed.ccdb79c814ed362e8c5725bf9a09bc7b18c716c0, including all four general shards, both macOS shards, stable Rust checks, macOS widget/app bundle and Linux packaging/E2E. Conditional Windows/manual-only jobs remain skipped. No live app or proxy was upgraded during validation.Checklist
Summary by CodeRabbit