{"id":13477844,"url":"https://github.com/tauri-apps/cargo-mobile2","last_synced_at":"2026-02-14T17:02:05.523Z","repository":{"id":40409420,"uuid":"337906595","full_name":"tauri-apps/cargo-mobile2","owner":"tauri-apps","description":"Rust on mobile made easy!","archived":false,"fork":false,"pushed_at":"2026-01-29T18:47:13.000Z","size":2524,"stargazers_count":1814,"open_issues_count":39,"forks_count":92,"subscribers_count":17,"default_branch":"dev","last_synced_at":"2026-02-09T15:57:46.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"BrainiumLLC/cargo-mobile","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tauri-apps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-11T02:02:01.000Z","updated_at":"2026-02-06T11:00:02.000Z","dependencies_parsed_at":"2023-10-16T12:39:50.183Z","dependency_job_id":"bd486645-a3fd-42b7-b324-e6c440e5b722","html_url":"https://github.com/tauri-apps/cargo-mobile2","commit_stats":{"total_commits":818,"total_committers":47,"mean_commits":"17.404255319148938","dds":0.519559902200489,"last_synced_commit":"a563a6404b3f966136ff6dacb0fe3ce681581ce4"},"previous_names":["tauri-apps/cargo-mobile2","tauri-apps/tauri-mobile"],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/tauri-apps/cargo-mobile2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fcargo-mobile2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fcargo-mobile2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fcargo-mobile2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fcargo-mobile2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tauri-apps","download_url":"https://codeload.github.com/tauri-apps/cargo-mobile2/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Fcargo-mobile2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29450582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:48.384Z","updated_at":"2026-02-14T17:02:05.509Z","avatar_url":"https://github.com/tauri-apps.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# cargo-mobile2\n\n## Maintenance Status\n\nThis fork was created for use as a base for mobile support in [Tauri](https://github.com/tauri-apps/tauri). Due to very limited resources we can only provide maintenance for that single use-case.\n\n**We currently cannot offer support or fix issues for uses outside of Tauri.**\n\nIf you face issues with Tauri, please open an issue in Tauri's [issue tracker](https://github.com/tauri-apps/tauri/issues/new/choose) even if you tracked down the issue to cargo-mobile2.\n\nThat said, contributions are still very welcome and if you're interested in helping us maintain this crate, please reach out to us in the `#contributing` channel on the [Tauri Discord](https://discord.com/invite/tauri).\n\n## Introduction\n\n\u003e _The answer to \"how do I use Rust on iOS and Android?\"_\n\u003e\n\u003e cargo-mobile takes care of generating Xcode and Android Studio project files, building and running on device, generating project boilerplate, and a few other things!\n\nThis project is a fork of [cargo-mobile](https://github.com/BrainiumLLC/cargo-mobile/). Tauri uses it as a library dependency instead of using its CLI directly. For more information, please visit Tauri's [prerequisites](https://v2.tauri.app/start/prerequisites/#configure-for-mobile-targets) and [development](https://v2.tauri.app/develop/#developing-your-mobile-application) guides.\n\nIn the meantime, cargo-mobile2 contains the template of wry, please follow [wry's instruction](https://github.com/tauri-apps/wry#android--ios) if you want to use with it.\n\n## Installation\n\nThe build will probably take a bit, so feel free to go get a snack or something.\n\n```bash\ncargo install --git https://github.com/tauri-apps/cargo-mobile2\n```\n\ncargo-mobile2 is currently supported on macOS, Linux and Windows. Note that it's not possible to target iOS on platforms other than macOS! You'll still get to target Android either way.\n\nYou'll need to have Xcode and the Android SDK/NDK installed. Some of this will ideally be automated in the future, or at least we'll provide a helpful guide and diagnostics.\n\nWhenever you want to update:\n\n```bash\ncargo mobile update\n```\n\n## Usage\n\nTo start a new project, all you need to do is make a directory with a cute name, `cd` into it, and then run this command:\n\n```bash\ncargo mobile init\n```\n\nAfter some straightforward prompts, you'll be asked to select a template pack. Template packs are used to generate project boilerplate, i.e. using the `wry` template pack gives you a [wry](https://github.com/tauri-apps/wry) project that runs out-of-the-box on desktop and mobile.\n\n| name      | info                                                                                                                |\n| --------- | ------------------------------------------------------------------------------------------------------------------- |\n| bevy      | Minimal Bevy application rendering a static sprite                                                                  |\n| bevy-demo | Minimal 2d Bevy application with a controlable sprite and some audio                                                |\n| dioxus    | Hello world Dioxus example                                                                                          |\n| egui      | Full egui + winit + wgpu example based on [agdk-egui example](https://github.com/rust-mobile/rust-android-examples) |\n| wgpu      | `wgpu-rs` triangle example                                                                                          |\n| winit     | `winit` window example                                                                                              |\n| wry       | Minimal wry project                                                                                                 |\n\n**Template pack contribution is welcomed**\n\nOnce you've generated your project, you can run `cargo run` as usual to run your app on desktop. However, now you can also do `cargo apple run` and `cargo android run` to run on connected iOS and Android devices respectively!\n\nIf you prefer to work in the usual IDEs, you can use `cargo apple open` and `cargo android open` to open your project in Xcode and Android Studio respectively.\n\nFor more commands, run `cargo mobile`, `cargo apple`, or `cargo android` to see help information.\n\n### Android\n\n`cargo android run` will build, install and run the app and follows device logs emitted by the app.\n\nBy default, warn and error logs are displayed. Additional logging of increasing verbosity can be shown by use of the `-v` or `-vv` options. These also provide more verbose logging for the build and install steps.\n\nFor fine-grained control of logging, use the `--filter` (or `-f`) option, which takes an Android log level, such as `debug`. This option overrides\nthe default device logging level set by `-v` or `-vv`.\n\nIf using the `android_logger` crate to handle Rust log messages, `trace` logs from Rust are mapped to `verbose` logs in Android.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fcargo-mobile2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftauri-apps%2Fcargo-mobile2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Fcargo-mobile2/lists"}