Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fwcd/nuit-multiplatform-example
Template for a multiplatform (desktop + mobile) app written in Rust using Nuit
https://github.com/fwcd/nuit-multiplatform-example
app ios mobile nuit rust ui
Last synced: about 2 months ago
JSON representation
Template for a multiplatform (desktop + mobile) app written in Rust using Nuit
- Host: GitHub
- URL: https://github.com/fwcd/nuit-multiplatform-example
- Owner: fwcd
- License: cc0-1.0
- Created: 2024-07-27T13:31:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T21:40:52.000Z (6 months ago)
- Last Synced: 2024-12-07T10:10:13.401Z (2 months ago)
- Topics: app, ios, mobile, nuit, rust, ui
- Language: Rust
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nuit Multiplatform Example
A small example for a simple multiplatform (desktop + mobile) app written in Rust using the declarative UI library [Nuit](https://github.com/fwcd/nuit).
> [!IMPORTANT]
> This is highly experimental and currently only works on macOS and iOS. Support for more platforms, especially Linux, is planned in the future.## Getting Started
First make sure to have [`cargo-mobile2`](https://github.com/tauri-apps/cargo-mobile2) installed, then run
```sh
cargo mobile init
```> [!NOTE]
> If the `gen` folder already exists, you may have to delete it first due to https://github.com/tauri-apps/cargo-mobile2/issues/351.To run
- on desktop use `cargo run`
- on iOS use `cargo apple run`
- on Android use `cargo android run`> [!TIP]
> For iOS and Android you can also open the project in the corresponding IDE with `cargo apple open` (Xcode) and `cargo android open` (Android Studio), respectively.## Implementation Notes
- The `#[mobile_entry_point]` annotation generates all the boilerplate `extern` functions for mobile.
- Logging on Android is done using `android_logger`.