Skip to content

Evaluate upgrading objc crate to objc2 ecosystem #20

@Laurc2004

Description

@Laurc2004

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions