swift-bindgen
swift-bindgen copied to clipboard
Bridging the gap between Swift and Rust
In this function you use the unsafe keyword for some safe expressions. We need to mark unsafe operations more precisely using unsafe keyword. Keeping unsafe blocks small can bring many...
It looks like this project might be a little stagnant but I thought I'd show some interest and write some words on generating rust bindings from swift. The front end...
The Swift struct and enum layouts, distinguish between the size (store size) and stride (array size) of types. In particular, the stable Swift 5 layout algorithm (mostly) [documented here](https://github.com/apple/swift/blob/master/docs/ABI/TypeLayout.rst), which...
For the long-term success of this project, it should allow for exposing functions in Rust that can be called in Swift via the Swift function ABI as well as calling...
In Rust, types that don't implement [`Copy`] are considered to be move-only and can only be copied via [`Clone`] or other means. In Swift, there's currently no notion of moving...
All public functions that manipulate the Swift runtime are annotated with `SWIFT_RUNTIME_EXPORT`. Are these considered stable and part of Swift's ABI?
What does having two-way bindings between Rust and Swift even _mean_? We can cross the bridge in many ways today. However, there's a point where each language's limitations stop us...
There's a good chance this isn't the correct approach but I'm gonna give it a try. I've decided to take a look at the Swift `tbd` files. These are basically...