Re:How we use Rust in our mobile SDK
by mbalex99 on Tuesday April 28, 2020 @01:04PM
(#23009056)
Thank you for the Ditto shoutout! Our team took quite some time to make bitcode and rust work with our customers. Glad to see it was useful for another company building cross platform SDKs.
[ Parent
| on HN ]
Re:How we use Rust in our mobile SDK
by tedmielczarek on Tuesday April 28, 2020 @01:17PM
(#23009261)
Thank you for making that available! I understand why it's hard for upstream Rust to provide and I hope they'll find a solution eventually but until then not having to reinvent that wheel saved us a lot of time!
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".
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.