Severity: LOW
Problem
src-tauri/Cargo.toml line 30: The project uses objc version 0.2.7, which is the legacy crate. The newer objc2 ecosystem provides:
- Better compile-time verification of Objective-C message signatures
- Improved safety guarantees
- Active maintenance
The current usage relies on raw msg_send! macros with no compile-time verification.
Proposed Solution
Evaluate migrating from objc 0.2.x to the objc2 ecosystem (objc2, objc2-foundation, objc2-app-kit). This would improve safety guarantees for the Objective-C FFI code in clipboard.rs and clipboard_watcher.rs.
Note: This is a low-priority improvement since the current code works correctly. The objc2 migration would be best done alongside other clipboard-related refactoring.
References
Severity: LOW
Problem
src-tauri/Cargo.tomlline 30: The project usesobjcversion 0.2.7, which is the legacy crate. The newerobjc2ecosystem provides:The current usage relies on raw
msg_send!macros with no compile-time verification.Proposed Solution
Evaluate migrating from
objc0.2.x to theobjc2ecosystem (objc2,objc2-foundation,objc2-app-kit). This would improve safety guarantees for the Objective-C FFI code inclipboard.rsandclipboard_watcher.rs.Note: This is a low-priority improvement since the current code works correctly. The
objc2migration would be best done alongside other clipboard-related refactoring.References
PLAN.mditem Evaluate upgrading objc crate to objc2 ecosystem #20