Re:How we use Rust in our mobile SDK
by mmastrac on Tuesday April 28, 2020 @01:15PM
(#23009235)
Big thank you for making those public. It saved us a bunch of time. We'd like to figure out how to make this easier for people - possibly by providing a binary cross-platform toolchain that "just works".
[ Parent
| on HN ]
You should give rust-embedded's `cross` project a look.
https://github.com/rust-embedded/cross/
I can't find any iOS related directories in their list of targets but there are a couple issues related to supporting apple platforms.
Re:How we use Rust in our mobile SDK
by tedmielczarek on Wednesday April 29, 2020 @10:04AM
(#23019348)
I don't think this really solves any problems for us unfortunately. The core of the bitcode problem is that you need the rustc you're using to have the exact same version of LLVM as the Xcode toolchain you're using, since bitcode is a not-entirely-stable internal LLVM format. Cross-compiling to most mobile platforms is actually pretty straightforward with Rust.