Conversation
…t lancedb dependency target conditions
Summary of ChangesHello @felix-schultz, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the application's configuration and platform-specific behaviors across desktop and storage components. It ensures more precise dependency management, consistent deep link handling, and cleaner Apple application metadata, while also preparing internal directory paths for greater flexibility. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces several configuration and platform-specific adjustments. The changes to Cargo.toml to refine the lancedb dependency, the update to the deep link registration in lib.rs, and the cleanup of Info.plist files are all positive improvements that enhance correctness and maintainability.
My review focuses on an opportunity to refactor the directory path initialization in settings.rs. While the current change to make variables mutable is functional, I've suggested a more idiomatic Rust approach using conditional compilation to initialize these paths immutably, which improves code clarity and robustness.
This pull request makes several configuration and platform-specific adjustments across the desktop and storage packages. The main changes include updating platform and architecture conditions for dependencies, modifying deep link registration logic, and cleaning up Info.plist files. Below are the most important changes, grouped by theme:
Platform-specific configuration updates:
lancedbinpackages/storage/Cargo.tomlto only include macOS and Linux on x86_64 and aarch64 architectures, instead of all non-Windows platforms.apps/desktop/src-tauri/src/lib.rsto always include Windows, regardless of debug assertions, aligning behavior across platforms.Info.plist cleanup:
ITSAppUsesNonExemptEncryptionkey from bothapps/desktop/src-tauri/Info.plistandapps/desktop/src-tauri/gen/apple/flow-like-desktop_iOS/Info.plist, simplifying compliance declarations. [1] [2]Directory initialization improvements:
apps/desktop/src-tauri/src/settings.rsto be mutable, preparing them for potential platform-specific modifications.