3 ms·
I think whoever „wins“, it would be necessary to have good interop at least. Currently, Rust devs are integrating core libs into native iOS apps by going the C
by manmal 4y ago
I think whoever „wins“, it would be necessary to have good interop at least. Currently, Rust devs are integrating core libs into native iOS apps by going the C route. All this work to make everything memory safe, and then this.
- mrtesthah 4y agoSwift-based interop would provide richer type information. See how swift-bridge takes advantage of it: https://github.com/chinedufn/swift-bridge https://github.com/chinedufn/swift-bridge
- jen20 4y agoWhich direction are you talking? If you want to link against Rust there is little choice but to use a C layer because it doesn’t have a stable ABI.
- manmal 4y agoI‘m talking Swift > Rust. TIL about the unstable ABI, thanks!
- jen20 4y agoGot it - the other way is actually fine because Swift does have a stable ABI - swift-bridge [1] allows interop in terms of high level types instead of devolving to C. [1]: https://github.com/chinedufn/swift-bridge https://github.com/chinedufn/swift-bridge
- deleted 4y ago[deleted]