tauri-impl-mobile

Configure crate-type and mobile entry points for Tauri Android and iOS builds.

4|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/OpenAEC-Workspace-Composer --skill tauri-impl-mobile
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tauri-impl-mobile
Source: https://github.com/OpenAEC-Foundation/OpenAEC-Workspace-Composer/tree/main/.claude/skills/tauri-2/tauri-impl/tauri-impl-mobile
Command: npx skills add https://github.com/OpenAEC-Foundation/OpenAEC-Workspace-Composer --skill tauri-impl-mobile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Mobile Tauri projects often stumble on missing crate-type settings and entry-point misconfigurations that prevent builds on Android and iOS. This skill provides a complete guide to setup and restructure for mobile targets.

Core Features & Use Cases

  • Ensures proper crate-type configuration (staticlib, cdylib, rlib) for cross-platform mobile builds.
  • Demonstrates splitting desktop and mobile entry logic into lib.rs and a minimal main.rs.
  • Covers Android and iOS target setup, tauri android/ios commands, cfg attributes, and Cargo.toml configuration to enable seamless mobile development.
  • Use Case: Migrating a desktop-only Tauri project to support Android and iOS with a single cross-platform workflow.

Quick Start

Initialize a mobile Tauri project by configuring crate-type for Android/iOS, restructuring entry points with lib.rs and a minimal main.rs, and applying platform-specific cfg attributes.

Frequently Asked Questions about tauri-impl-mobile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a Tauri app to build for Android and iOS?▼

Configuring a Tauri app for Android and iOS requires setting the proper crate-type in Cargo.toml and restructuring entry points by placing shared logic in lib.rs with #[cfg_attr(mobile, tauri::mobile_entry_point)] and keeping a minimal main.rs for desktop.

Why does my Tauri mobile build fail to compile on Android or iOS?▼

Tauri mobile builds often fail due to missing crate-type settings like cdylib or staticlib and entry-point misconfigurations. Splitting desktop and mobile logic into lib.rs and a minimal main.rs resolves these startup failures.

How do I separate desktop and mobile entry points in a cross-platform Tauri project?▼

You separate desktop and mobile entry points by placing shared mobile logic in lib.rs annotated with #[cfg_attr(mobile, tauri::mobile_entry_point)] and maintaining a minimal main.rs for desktop, ensuring reliable mobile startup and clean cross-platform builds.

What crate-type settings are required for Tauri cross-platform mobile builds?▼

Tauri cross-platform mobile builds require configuring Cargo.toml with specific crate-type settings such as staticlib, cdylib, and rlib to ensure the project compiles correctly for both Android and iOS targets.

Can I migrate an existing desktop Tauri project to support iOS and Android?▼

You can migrate a desktop Tauri project to iOS and Android by restructuring Cargo.toml, applying platform-specific cfg attributes, and running tauri android and tauri ios commands to set up the mobile targets within a single workflow.