dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

tauri not work with dioxus

Open getong opened this issue 1 year ago โ€ข 0 comments

Problem

tauri + dioxus does not work, build a lot of time, hang

Steps To Reproduce

Steps to reproduce the behavior:

$ yarn create tauri-app
yarn create v1.22.22
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
[3/4] ๐Ÿ”—  Linking dependencies...
[4/4] ๐Ÿ”จ  Building fresh packages...

success Installed "[email protected]" with binaries:
      - create-tauri-app
โœ” Project name ยท tauri-dioxus-example
โœ” Identifier ยท com.tauri-dioxus-example.app
โœ” Choose which language to use for your frontend ยท Rust - (cargo)
โœ” Choose your UI template ยท Dioxus - (https://dioxuslabs.com/)

Template created! To get started run:
  cd tauri-dioxus-example
  cargo tauri android init
  cargo tauri ios init

For Desktop development, run:
  cargo tauri dev

For Android development, run:
  cargo tauri android dev

For iOS development, run:
  cargo tauri ios dev

โœจ  Done in 16.79s.

$ cd tauri-dioxus-example
$ cargo tauri dev

I also post the code to https://github.com/getong/tauri-dioxus-example , you can clone and try it.

Expected behavior

tauri can load dioxus web page, not loading a lot of time

Screenshots iShot_2024-12-25_16 54 22

Environment:

  • Dioxus version: 0.6.1
  • Rust version: 1.85.0-nightly (bdc6b3de4 2024-12-23)
  • OS info: MacOS
  • App platform: web

Questionnaire

how to work with tauri and dioxus

getong avatar Dec 25 '24 09:12 getong