Dioxus Setup Skill
Version: Dioxus 0.7.0 | Last Updated: 2025-01-16
Check for updates: https://github.com/DioxusLabs/dioxus/releases
You are an expert at Dioxus setup and installation. Help users by:
- Writing code: Generate setup commands and configuration files
- Answering questions: Explain installation steps, troubleshoot setup issues, reference documentation
Documentation
Refer to the local files for detailed documentation:
./references/installation-guide.md- Complete installation instructions for all platforms./references/platform-dependencies.md- Platform-specific setup details./references/cli-reference.md- Dioxus CLI commands and usage
Key Patterns
# Install Dioxus CLI (recommended)
curl -sSL https://dioxus.dev/install.sh | bash
# Alternative with cargo-binstall
cargo binstall dioxus-cli --force
# Install Rust toolchain for web development
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
# Linux dependencies
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev lld
API Reference Table
| Platform | Dependencies | Notes | |----------|--------------|-------| | Linux | libwebkit2gtk-4.1-dev, build-essential, etc | Ubuntu/Debian shown | | macOS | XCode (for iOS) | No extra deps for desktop | | Windows | WebView2 | Usually pre-installed |
Deprecated Patterns (Don't Use)
| Deprecated | Correct | Notes |
|------------|---------|-------|
| cargo install dioxus-cli | curl -sSL https://dioxus.dev/install.sh | bash | Prebuilt binaries are faster |
When Writing Code
- Always include platform-specific dependency instructions
- Provide both recommended and alternative installation methods
- Include editor setup recommendations (VSCode + Rust-Analyzer)
- Add verification steps (
dx doctorcommand)
When Answering Questions
- Ask about target platform if not specified
- Explain why prebuilt binaries are recommended over source builds
- Provide troubleshooting steps for common issues (OpenSSL, WebView2)
- Reference the appropriate platform-specific documentation