Skip to content

Get started

  • Rust through rustup. The scaffold’s rust-toolchain.toml uses stable Rust and lists the Android targets, so rustup installs them.
  • For Android: the Android SDK and NDK, a JDK, and an emulator or a phone with USB debugging.
  • For iOS: a Mac with Xcode and XcodeGen. The simulator needs no Apple account or signing.
  • For the web: Trunk and the wasm32-unknown-unknown target.

mobiler doctor checks the Rust, Android and (on a Mac) iOS tools and says what is missing.

Terminal window
cargo install mobiler
mobiler doctor
mobiler new myapp --package com.example.myapp --display-name "My App"
cd myapp
mobiler dev

mobiler dev builds the Rust core, generates the shell bindings, builds the Android app, installs it and launches it. With several devices connected, pick one with --device <serial>. mobiler watch does the same on every change.

On a Mac, mobiler build ios builds the iOS app for the simulator (it runs iOS/build-ios.sh).

myapp/
shared/src/app.rs your app: Model, Msg, update, view. Start here.
shared/ the Rust crate the shells load (bindings, codegen)
Android/ the generic Android shell (Kotlin, Jetpack Compose)
iOS/ the generic iOS shell (Swift, SwiftUI; project.yml for XcodeGen)
.mobiler/ the CLI's baseline for upgrades: commit it
Cargo.toml the workspace
rust-toolchain.toml stable Rust and the Android targets

Edit shared/src/app.rs and run mobiler dev again. You shouldn’t need to open Android/ or iOS/: they render whatever your core returns. Icons, the display name and store signing are the per-platform parts you set yourself.

Options that change the shells (fonts, the launch screen, deep links, local network on iOS) go in a mobiler.toml at the app root. The build applies them. See mobiler.toml options.

The same core runs in a browser with the mobiler-web shell. See Add a web client.

mobiler new myapp --agentic adds a CLAUDE.md guide to the app, so an agent such as Claude Code writes idiomatic Mobiler. --agentic shared-ui adds guidance for the same UI on mobile and web, and --agentic api for a reusable core with a JSON API backend.