Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider swift-bridge #2

Closed
ShadowJonathan opened this issue Feb 17, 2022 · 3 comments
Closed

Consider swift-bridge #2

ShadowJonathan opened this issue Feb 17, 2022 · 3 comments

Comments

@ShadowJonathan
Copy link

ShadowJonathan commented Feb 17, 2022

I'm recommending to look into swift-bridge, which recently has gotten async function support (though with a few caveats)

Considering uniffi is generic over many different calling conventions and libraries, it may take longer for them to add support for async, while swift-bridge can serve this library's usage more directly (and immidiately)

(I'm just leaving this issue here so it can be weighted against uniffi experiments, as a mention of an alternative)

@ShadowJonathan
Copy link
Author

(Another advantage of swift-bridge might be its ergonomic use, with bidirectional bridging fairly easily achievable and abstracted away;)
image

@jplatte
Copy link

jplatte commented Apr 8, 2022

I don't think this is realistic because swift-bridge seems to be less mature than uniffi overall, and it also looks to have a bus factor of 1.

Additionally, we're looking to bridge the Rust SDK to Kotlin in addition to Swift, where there doesn't seem to be a similar high-level alternative.

Finally, I want to respond to this:

Considering uniffi is generic over many different calling conventions and libraries, it may take longer for them to add support for async

A bunch of features in uniffi are already only supported for a subset of the languages it supports, so this shouldn't be a major concern.

@jplatte
Copy link

jplatte commented Apr 13, 2022

By the way, UniFFI is also considering more ergonomic ways of declaring the API: mozilla/uniffi-rs#385

@jplatte jplatte closed this as completed Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants