One Core, Every ScreenUn núcleo para todas las pantallasคอร์เดียว ทุกหน้าจอ
A shared Rust core for native apps on Android, iOS, tvOS, desktop, and web.Un núcleo Rust compartido para apps nativas en Android, iOS, tvOS, escritorio y web.คอร์ Rust ที่ใช้ร่วมกันสำหรับแอปเนทีฟบน Android, iOS, tvOS, เดสก์ท็อป และเว็บ
You wrote the same logic three times. Write it once.Escribiste la misma lógica tres veces. Escríbela una.คุณเขียนลอจิกเดียวกันสามครั้ง เขียนครั้งเดียว
Rust coreNúcleo Rustคอร์ RustAndroidiOStvOSdesktopescritorioเดสก์ท็อปweb
Cross-Platform Rust: Share One Core Across Native Android, iOS, tvOS, Desktop and Web AppsRust multiplataforma: Un núcleo compartido para apps nativas en Android, iOS, tvOS, escritorio y webRust ข้ามแพลตฟอร์ม: คอร์เดียวร่วมกันสำหรับแอปเนทีฟบน Android, iOS, tvOS, เดสก์ท็อป และเว็บ



The problemEl problemaปัญหา
The same business logic gets rewritten for Android, iOS, and the web. Fix a bug three times.La misma lógica de negocio se reescribe para Android, iOS y la web. Arreglas un fallo tres veces.ลอจิกธุรกิจเดียวกันถูกเขียนใหม่สำหรับ Android, iOS และเว็บ แก้บั๊กสามครั้ง
1Password1Password1Password
BitwardenBitwardenBitwarden
ProtonProtonProton
AndroidAndroidAndroid
iOS · iPadOS · tvOSiOS · iPadOS · tvOSiOS · iPadOS · tvOS
Desktop · WebEscritorio · Webเดสก์ท็อป · เว็บ
1Password, Bitwarden, and Proton ship a shared core with native screens.1Password, Bitwarden y Proton publican un núcleo compartido con pantallas nativas.1Password, Bitwarden และ Proton ปล่อยคอร์ร่วมพร้อมหน้าจอเนทีฟ
Rust core
One crate owns domain rules, validation, and shared models.
UniFFI exports the API each native shell calls.
The approachEl enfoqueแนวทาง
One Rust crate holds the business logic. Each platform keeps its own UI: Kotlin and Jetpack Compose on Android, Swift and SwiftUI on iOS, iPadOS, and tvOS, a desktop shell, and the web through wasm-bindgen. UniFFI generates the bindings. The screens stay native.Un crate de Rust guarda la lógica de negocio. Cada plataforma mantiene su propia UI: Kotlin y Jetpack Compose en Android, Swift y SwiftUI en iOS, iPadOS y tvOS, un shell de escritorio, y la web con wasm-bindgen. UniFFI genera los bindings. Las pantallas siguen siendo nativas.crate Rust เดียวถือลอจิกธุรกิจ แต่ละแพลตฟอร์มคง UI ของตัวเอง: Kotlin และ Jetpack Compose บน Android, Swift และ SwiftUI บน iOS, iPadOS และ tvOS, shell เดสก์ท็อป และเว็บผ่าน wasm-bindgen UniFFI สร้าง binding หน้าจอยังเป็นเนทีฟ
Rust sits under native UI, including under Kotlin Multiplatform.Rust va debajo de la UI nativa, también debajo de Kotlin Multiplatform.Rust อยู่ใต้ UI เนทีฟ รวมถึงใต้ Kotlin Multiplatform
What you'll learnQué vas a aprenderคุณจะเรียนอะไร
4 parts4 partes4 ส่วน
You build a real sample project through the book.A lo largo del libro construyes un proyecto de ejemplo real.คุณสร้างโปรเจกต์ตัวอย่างจริงไปตลอดเล่ม
Who it's forPara quién esสำหรับใคร
Mobile and web developers who want shared logic and a native UI.Desarrolladores móviles y web que quieren lógica compartida y UI nativa.นักพัฒนามือถือและเว็บที่ต้องการลอจิกร่วมและ UI เนทีฟ
Who it's not forPara quién no esไม่เหมาะกับใคร
Skip it if you want Tauri, Flutter, or a Kotlin Multiplatform replacement.Pásalo si buscas Tauri, Flutter o un sustituto de Kotlin Multiplatform.ข้ามไปถ้าต้องการ Tauri, Flutter หรือสิ่งที่มาแทน Kotlin Multiplatform
About the authorSobre el autorเกี่ยวกับผู้เขียน

David Cruz Anaya
I’m David Cruz Anaya (davthecoder), a mobile and applied AI engineer in London. I write about shared cores for Android and iOS, in Kotlin Multiplatform and Rust. I teach Android on Udemy.Soy David Cruz Anaya (davthecoder), ingeniero de móvil e IA aplicada en Londres. Escribo sobre núcleos compartidos para Android e iOS, en Kotlin Multiplatform y Rust. Doy cursos de Android en Udemy.ผมชื่อ David Cruz Anaya (davthecoder) วิศวกรมือถือและ AI ประยุกต์ในลอนดอน ผมเขียนเรื่องคอร์ร่วมสำหรับ Android และ iOS ทั้ง Kotlin Multiplatform และ Rust ผมสอน Android บน Udemy
From shipping native appsDesde apps nativas en producciónจากแอปเนทีฟที่ส่งจริง
For engineers who already ship Kotlin, Swift, or TypeScript and want one core without giving up native screens. The sample project uses the same UniFFI path as production shared-core apps.Para ingenieros que ya publican en Kotlin, Swift o TypeScript y quieren un solo núcleo sin renunciar a pantallas nativas. El proyecto de ejemplo usa el mismo camino UniFFI que las apps de producción con núcleo compartido.สำหรับวิศวกรที่ส่งงาน Kotlin, Swift หรือ TypeScript อยู่แล้ว และต้องการคอร์เดียวโดยไม่ทิ้งหน้าจอเนทีฟ โปรเจกต์ตัวอย่างใช้เส้นทาง UniFFI เดียวกับแอปโปรดักชันที่มีคอร์ร่วม
FAQ
ScopeAlcanceขอบเขตIs this Tauri or Flutter?¿Es esto Tauri o Flutter?นี่คือ Tauri หรือ Flutter?
No. Each platform keeps its native UI.No. Cada plataforma mantiene su UI nativa.ไม่ใช่ แต่ละแพลตฟอร์มคง UI เนทีฟของตัวเอง
KMPKMPKMPDoes it replace Kotlin Multiplatform?¿Sustituye a Kotlin Multiplatform?มันแทนที่ Kotlin Multiplatform ไหม?
No. Rust can sit under KMP too.No. Rust también puede ir debajo de KMP.ไม่ แต่ Rust อยู่ใต้ KMP ได้ด้วย
RustRustRustDo I need to know Rust?¿Necesito saber Rust?ต้องรู้ Rust ไหม?
No. Part I covers it.No. La Parte I lo cubre.ไม่ต้อง ส่วนที่ I ครอบคลุม
EditionsEdicionesฉบับWill there be a Spanish edition and a video course?¿Habrá edición en español y un curso en vídeo?จะมีฉบับภาษาสเปนและคอร์สวิดีโอไหม?
The Spanish edition, Rust multiplataforma, and a video course are planned after the English edition.La edición en español, Rust multiplataforma, y un curso en vídeo están previstos después de la edición en inglés.ฉบับภาษาสเปน Rust multiplataforma และคอร์สวิดีโอวางแผนไว้หลังฉบับภาษาอังกฤษ
TimingFechasเวลาWhen is it out?¿Cuándo sale?ออกเมื่อไร?
The book is in progress. There is no release date. Join the list for early access.El libro está en marcha. No hay fecha de salida. Únete a la lista para acceso anticipado.หนังสือกำลังทำอยู่ ยังไม่มีวันออก เข้าคิวเพื่อการเข้าถึงก่อน

Early accessAcceso anticipadoการเข้าถึงก่อน
The English edition is in progress. Join the list for the free chapter and early access.La edición en inglés está en marcha. Únete a la lista para el capítulo gratis y el acceso anticipado.ฉบับภาษาอังกฤษกำลังทำอยู่ เข้าคิวเพื่อบทฟรีและการเข้าถึงก่อน
Picture credits: rusted metal by Pink Sherbet Photography (CC BY 2.0); steel texture CC0 via Wikimedia Commons; quoins by Edinburgh City of Print (CC BY 2.0); movable type cases by Mangoman88 (CC BY-SA 3.0). Device and portrait photographs from davthecoder.Créditos de imagen: metal oxidado de Pink Sherbet Photography (CC BY 2.0); textura de acero CC0 vía Wikimedia Commons; cuñas de Edinburgh City of Print (CC BY 2.0); cajones de tipos de Mangoman88 (CC BY-SA 3.0). Fotos de dispositivo y retrato de davthecoder.เครดิตภาพ: โลหะเป็นสนิมโดย Pink Sherbet Photography (CC BY 2.0); พื้นผิวเหล็ก CC0 ผ่าน Wikimedia Commons; ลิ่มตัวพิมพ์โดย Edinburgh City of Print (CC BY 2.0); กล่องตัวพิมพ์โดย Mangoman88 (CC BY-SA 3.0) ภาพอุปกรณ์และภาพถ่ายบุคคลจาก davthecoder



