Skip to content

Instantly share code, notes, and snippets.

@pangpond
Last active September 19, 2025 05:15
Show Gist options
  • Save pangpond/d0442dc92f0f8f3b2d3d79ce5c8ce177 to your computer and use it in GitHub Desktop.
Save pangpond/d0442dc92f0f8f3b2d3d79ce5c8ce177 to your computer and use it in GitHub Desktop.
Dioxus Tutorial

Install Rust

rustup toolchain install stable
rustup target add wasm32-unknown-unknown

Install the Dioxus CLI

curl -sSL http://dioxus.dev/install.sh | sh

through brew

brew install cargo-binstall
cargo binstall dioxus-cli

iOS

rustup target add aarch64-apple-ios aarch64-apple-ios-sim

Dioxus with Tailwind

dx new my-app
cd my-app

npm install tailwindcss @tailwindcss/cli
npx tailwindcss -i ./input.css -o ./mobile/assets/tailwind.css --watch

iOS simulator

open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
xcrun simctl boot "iPhone 17 Pro"

Dioxus Serve

dx serve --hot-reload true --platform ios --package mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment