![]() ![]() Let’s start by creating a folder called rust-for-android-ios-flutter and create four folders in it ( android, ios, flutter & rust): You can also read this post while taking a look at the associated GitHub repository. ![]() We are going to write a simple shared Rust library and compile it to Android and iOS, and as a bonus, we will also write a Flutter plugin using the very same code.Īs you can see, the scope of this article is quite broad so we’ll try to keep everything organized. With Rust, not only would you be able to share the same code among multiple platforms, but you could also take advantage of the boost of performance that you will get by using it. That’s nice, but how could we do something like this? Enter Rust. Having just a shared library would save us from having to maintain two different codebases and would diminish the chance to get more bugs. In this kind of scenario, it would make sense to avoid having to write a specific library for Android and another one for iOS. You want to preserve the privacy of the user. Imagine that you have a mobile app that needs to process some audio in order to get some insights about the user but you don’t want the audio to be sent to the server to be processed. But, why would we want something like this? In this article, we’ll see how to achieve this with Rust. What if I told you that you could use the same very performant code in Android, iOS or even in Flutter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |