3 ms·
If I'm reading it right, it lets you build Rust libraries so you can use them in iOS programs.
by taneq 7y ago
If I'm reading it right, it lets you build Rust libraries so you can use them in iOS programs.
- rapsey 7y agoYou can already build for iOS, just not apple tv or watch without bitcode. For building for iphone this is not needed.
- MuffinFlavored 7y agoLibraries only, or can you write native iOS apps 100% in Rust, no Swift?
- quells 7y agoYou would need at least a bridging layer (of Objective-C) to so that your app code could use the system frameworks and respond to events (user input, network, sensors, etc).
- Diggsey 7y agoObjective-C shares calling conventions and struct layout with C, so theoretically you could directly call the system frameworks from Rust via extern "C" functions.
- MuffinFlavored 7y agoIt'd be super cool to see a 100% Rust (with extern "C" calls) Hello, world! iOS compatible app.
- holy_city 7y agoNot even theoretically, the bindings for the runtime are out there [1] with some nifty helper macros. [1] https://github.com/SSheldon/rust-objc https://github.com/SSheldon/rust-objc