5 ms·
A tangent: does anyone have recommendations for a library for easy Swift-Rust interop? This is a cool tool, but I’d much rather make a GUI natively with e.g. Sw
by jashephe 3y ago
A tangent: does anyone have recommendations for a library for easy Swift-Rust interop? This is a cool tool, but I’d much rather make a GUI natively with e.g. SwiftUI and then call out to Rust for business logic. The previous times I’ve looked into this, both languages had to communicate through a C intermediate, and handling more complex types became a chore…
- agg23 3y agoA bit late, but swift-bridge (https://github.com/chinedufn/swift-bridge https://github.com/chinedufn/swift-bridge) does this intelligently, and is probably what you're looking for.
- drizze 3y agoThere was a talk given on this subject at iOSoho if ya want to take a peek: https://youtu.be/8ApcIOZe9qg?t=1921 https://youtu.be/8ApcIOZe9qg?t=1921
- lukax 3y agoMozilla's uniffi-rs is really good. You write a common IDL and the bindings are generated automatically. It supports Swift, Kotlin, Python, Ruby and JavaScript (not in the official repo). https://github.com/mozilla/uniffi-rs https://github.com/mozilla/uniffi-rs