1、第三届中国第三届中国Rust开发者大会开发者大会利用利用Rust重塑移动应用开发重塑移动应用开发陈东 Aaron ChenCTO AccountLabsRust China Conf 20232023 移动应用开发移动应用开发有那些选择?有那些选择?1.Native2.Flutter 3.React Native?利用Rust重塑移动应用开发React Native is an open-source JavaScript framework,designed for building apps on multiple platforms.-Code reusability-Hot reloa
2、d-Javascript ecosystem iconFlutter,is an open source framework by Google for building beautiful,natively compiled,multi-platform applications from a single codebase.-Single codebase-Hot reload-Rendering Engine利用Rust重塑移动应用开发跨平台开发的优势和局限性跨平台开发的优势和局限性Pros:-Fast-Single Codebase-Third-party support(Javasc
3、ript better than Dart)利用Rust重塑移动应用开发跨平台开发的优势和局跨平台开发的优势和局限性限性Cons:-Performance-Native feature utilize-Existing Codebase跨平台开发到到底跨平台开发到到底应该跨什么?应该跨什么?UI or Logic?利用Rust重塑移动应用开发Rust在移动端应在移动端应用的价值用的价值 Rust is the only advanced choice for cross platform development.利用Rust重塑移动应用开发Rust的特点的特点Why Rust?-Cross p
4、latform-Performance-Thread Safe-Memory Safe-Love利用Rust重塑移动应用开发Rust在移动应用在移动应用开发中的应用开发中的应用Why Rust?-Cross platform-Performance-Memory Safe-Love利用Rust重塑移动应用开发PhoTto/image/chartKeystoneKeystone is aiming to develop the most secure and easyuse hardware wallet for the Web3 world利用Rust重塑移动应用开发Photo/image/c
5、hart采用采用Rust重构业务逻辑重构业务逻辑的背景和动机的背景和动机 PerformanceThe same business logic will run on different platforms such as embedded devices,IOS,Android,etc.It is an inevitable choice for our business to choose a language that can support multiple platforms.Share Logic利用Rust重塑移动应用开发Keystone App is a mobile appl
6、ication developed with React native.Due to some computationally intensive tasks,using Javascript is very poor.Therefore,we plan to use Rust to provide high performance 2);Photo/image/chartRust FFIRust FFI(Foreign Function Interface)refers to the ability of Rust programming language to interface with