You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift support is not available for macOS plugins. It is only available for iOS plugins.
Describe the solution you'd like
Since there are no production-ready Rust bindings for the macOS SDK, Swift support is needed for access to native APIs.
While Cacao is available for beta use, it is not exhaustive nor actively maintained e.g. Compared with windows-rs which is actively supported by contributors from Microsoft.
I'm inclined to close #12138 in favor of #4670 tbh. Same for #12137. In both cases i assume this is derived from the mobile plugin swift/kotlin support but that doesn't translate well to desktop. On mobile, tauri apps are actually kotlin / swift apps that we inject tauri into. On desktop there's really just rust, so even for the seemingly native languages in question here the approach would be the same as for all other languages.
While windows-rs provides Rust bindings for the Windows API there is no equivalent for AppKit on macOS other than Cacao (experimental) and core-foundation-rs which provides Rust bindings to Core Foundation and other low level libraries.
It would be far more useful to enable Swift language interop for macOS similiar to how it is implemented for iOS. This would simplify design and allow better code-sharing between iOS and macOS platforms.
Describe the problem
Swift support is not available for macOS plugins. It is only available for iOS plugins.
Describe the solution you'd like
Since there are no production-ready Rust bindings for the macOS SDK, Swift support is needed for access to native APIs.
While Cacao is available for beta use, it is not exhaustive nor actively maintained e.g. Compared with
windows-rs
which is actively supported by contributors from Microsoft.Alternatives considered
N/A
Additional context
See related discussion.
The text was updated successfully, but these errors were encountered: