• Stars
    star
    1,566
  • Rank 29,900 (Top 0.6 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rust on mobile made easy!

tauri-mobile

The answer to "how do I use Rust on iOS and Android?"

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!

This project is a fork of cargo-mobile. Tauri uses it as a library dependency instead of using its CLI directly. For more information, please visit Tauri's mobile guide.

In the meantime, tauri-mobile contains the template of wry, please follow wry's instruction if you want to use with it.

Installation

The build will probably take a bit, so feel free to go get a snack or something.

cargo install --git https://github.com/tauri-apps/tauri-mobile

tauri-mobile 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.

You'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.

Whenever you want to update:

cargo mobile update

Usage

To 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:

cargo mobile init

After 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 project that runs out-of-the-box on desktop and mobile.

name info
wry Minimal wry project
egui Full egui + winit + wgpu example based on agdk-egui example

Template pack contribution is welcomed

Note

For all the templates available now, currently bevy templates do not work and will encounter compile error if you try to build the project.

Once 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!

If 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.

For more commands, run cargo mobile, cargo apple, or cargo android to see help information.

Android

cargo android run will build, install and run the app and follows device logs emitted by the app.

By 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.

For fine-grained control of logging, use the --filter (or -f) option, which takes an Android log level, such as debug. This option overrides the default device logging level set by -v or -vv.

If using the android_logger crate to handle Rust log messages, trace logs from Rust are mapped to verbose logs in Android.

More Repositories

1

tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
Rust
81,362
star
2

awesome-tauri

๐Ÿš€ Awesome Tauri Apps, Plugins and Resources
4,224
star
3

wry

Cross-platform WebView library in Rust for Tauri.
Rust
3,491
star
4

tao

The TAO of cross-platform windowing. A library in Rust built for Tauri.
Rust
1,532
star
5

create-tauri-app

Rapidly scaffold out a new tauri app project.
Rust
979
star
6

tauri-action

Build your Web application as a Tauri binary for macOS, Linux and Windows
TypeScript
870
star
7

plugins-workspace

All of the official Tauri plugins in one place!
Rust
807
star
8

tauri-docs

The source for all Tauri project documentation.
MDX
769
star
9

window-vibrancy

Make your windows vibrant.
Rust
609
star
10

tauri-vscode

Visual Studio Code Extension for Tauri apps development
TypeScript
459
star
11

vue-cli-plugin-tauri

Turn your Vue SPA into a lightweight cross-platform desktop app
JavaScript
372
star
12

tauri-plugin-sql

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
365
star
13

tauri-egui

Rust
343
star
14

tauri-plugin-store

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
275
star
15

muda

Menu Utilities for Desktop Applications in Rust.
Rust
234
star
16

tray-icon

Tray icons for Desktop Applications.
Rust
199
star
17

window-shadows

Add native shadows to your windows.
Rust
160
star
18

tauri-bindgen

Typesafe language bindings generator for the Tauri IPC bridge
Rust
142
star
19

webkit2gtk-rs

WebKit2 bindings and wrappers for Rust
Rust
136
star
20

global-hotkey

Global hotkeys for Desktop Applications.
Rust
127
star
21

tauri-plugin-window-state

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
125
star
22

tauri-plugin-log

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
111
star
23

javascriptcore-rs

JavaScriptCore bindings and wrappers for Rust
Rust
91
star
24

tauri-plugin-positioner

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
91
star
25

meilisearch-docsearch

A quick search component for meilisearch, inspired by algolia/docsearch.
TypeScript
88
star
26

tauri-plugin-stronghold

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
88
star
27

tauri-plugin-authenticator

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
86
star
28

smoke-tests

A collection of frameworks used as a suite of smoke-tests for tauri
JavaScript
76
star
29

tauri-plugin-autostart

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
63
star
30

tauri-plugin-fs-watch

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
62
star
31

tauri-plugin-websocket

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
58
star
32

tauri-plugin-localhost

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
56
star
33

tauri-invoke-http

A custom invoke system for Tauri that leverages a localhost server
Rust
47
star
34

fix-path-env-rs

Rust
44
star
35

libappindicator-rs

Rust safe bindings for the libappindicator library
Rust
44
star
36

tauri-plugin-fs-extra

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
TypeScript
43
star
37

tauri-theia

Tauri Flavor of Theia
Rust
39
star
38

tauricon

Make icons for your tauri app with nodejs
TypeScript
30
star
39

tauri-plugin-upload

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
29
star
40

tauri-plugin-single-instance

[DEPRECATED] Please use the plugin from https://github.com/tauri-apps/plugins-workspace instead.
Rust
25
star
41

win7-notifications

Send Windows 10 styled notifications on Windows 7.
Rust
19
star
42

tauri-forage

Currified localForage with a side of extras.
TypeScript
18
star
43

tauri-hotkey-rs

Rust
17
star
44

rfcs

Request For Comments for the Tauri project
17
star
45

tauri-discord-bot

Tauri's Discord Bot
TypeScript
17
star
46

nsis-tauri-utils

A collection of NSIS plugins written in rust.
Rust
16
star
47

tauri-plugin-notification

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Kotlin
12
star
48

benchmark_results

11
star
49

tauri-github-bot

A GitHub bot for tauri-apps org to automate various tasks and intended to used only by tauri-apps org members.
TypeScript
10
star
50

gipfs

Git ops with IPFS
9
star
51

binary-releases

Prebuilt binaries for Tauri projects
9
star
52

governance-and-guidance

Rust
8
star
53

tauri-plugin-http

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
8
star
54

.github

Holds org-wide configuration files.
7
star
55

meetings

7
star
56

tauri-plugin-updater

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
7
star
57

tauri-search

[Archived] Tauri's Search Capabilities for Website leveraging MeiliSearch
TypeScript
6
star
58

tauri-plugin-shell

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
6
star
59

realworld

Realworld apps made with Tauri: Proof of Agnosis.
JavaScript
6
star
60

tauri.studio

Source code and build for the front-facing project website.
Vue
6
star
61

tauri-plugin-clipboard-manager

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
6
star
62

wry-mobile

Rust
6
star
63

tauri-plugin-fs

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
6
star
64

tauri-includedir

Rust
5
star
65

rustdocusaurus

POCโ€”turning rustdoc generated docs into Docusaurus (MD + sidebar)
JavaScript
5
star
66

docusaurus-meilisearch-indexer

JavaScript
5
star
67

tauri-plugin-os

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
JavaScript
5
star
68

tauri-plugin-persisted-scope

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
5
star
69

tauri-plugin-process

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
JavaScript
5
star
70

tauri-plugin-global-shortcut

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
5
star
71

dns-automation

This repo will manage DNS records automagically. Implementing Infrastructure as Code & GitOps practices.
HCL
4
star
72

tauri-plugin-dialog

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
4
star
73

tauri-plugin-cli

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
Rust
4
star
74

tauri-webpack

[Deprecated] webpack for no server
JavaScript
3
star
75

typedocusaurus

TypeScript
3
star
76

soup2-rs

Rust
2
star
77

benchmark_electron

Rust
2
star
78

automation

GitHub Actions available to the tauri-apps organization
JavaScript
2
star
79

gir-files

Shell
2
star
80

workflow-testbed

Test bed that will soon be deleted.
2
star
81

tauri-inliner-rs

Rust
1
star
82

tauri-plugin-window

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
TypeScript
1
star
83

msedgedriver-manifest-cache

A caching service (in the form of a static site) of the msedgedriver version manifest file that seems to go missing a lot.
Rust
1
star
84

tauri-dialog-rs

C
1
star
85

board-voter

Vue
1
star
86

tauri-plugin-app

[READ ONLY] This repository is a mirror, for issue tracking and development head to: https://github.com/tauri-apps/plugins-workspace
JavaScript
1
star