Featured Dioxus projects on how to build clean user interfaces in Rust

Overview

Example projects with Dioxus

This repository holds the code for a variety of example projects built with Dioxus.

Each project has information on how to build/deploy.

If you want to add your own, feel free to make a PR!

Current Projects:

Example Platform Creator
TodoMVC Web, Desktop @jkelleyrtp
TodoMVC iOS @jkelleyrtp
File Explorer Desktop @jkelleyrtp
E-Commerce LiveView @jkelleyrtp
WiFi Scanner Desktop @jkelleyrtp
Weather App (WIP Web @jkelleyrtp
Dog Search Engine Web/Desktop @jkelleyrtp

TODOMVC (Desktop, Web)

TodoMVC

iOS TODOMVC

TodoMVC Mobile

File Explorer (Desktop)

File Explorer

E-Commerce (Liveview)

E Commerce

WiFi Scanner (Desktop)

WiFi Scanner

Weather App (Liveview) [WIP]

Weather App

Dog Search Engine (Web) [WIP]

Dog Search Engine

Comments
  • Move router book project

    Move router book project

    This pull request moves the router book's complementary project from my account to this repo. I will also open a pull request on the Dioxus repo to update the project's location in the book.

    opened by DogeDark 2
  • Any specific requirement to get the desktop examples to run on windows? wifi scanner / file explorer

    Any specific requirement to get the desktop examples to run on windows? wifi scanner / file explorer

    I'm hyped, but cannot get the desktop examples to run.

    Both desktop examples exit with 101 on Windows. A window briefly pops up and immediately disappears again.

    PS C:\Users\mk\IdeaProjects\rust\example-projects\file-explorer> cargo run
    warning: static variable `App` should have an upper case name
      --> src\main.rs:21:8
       |
    21 | static App: Component<()> = |cx| {
       |        ^^^ help: convert the identifier to upper case: `APP`
       |
       = note: `#[warn(non_upper_case_globals)]` on by default
    
    warning: `file-explorer` (bin "file-explorer") generated 1 warning
        Finished dev [unoptimized + debuginfo] target(s) in 0.27s
         Running `target\debug\file-explorer.exe`
    thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WebView2Error(webview2 error, HRESULT 0x80070002)', C:\Users\mk\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.6\src\lib.rs:263:68
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    error: process didn't exit successfully: `target\debug\file-explorer.exe` (exit code: 101)
    PS C:\Users\mk\IdeaProjects\rust\example-projects\file-explorer> cargo version
    cargo 1.64.0-nightly (85b500cca 2022-07-24)
    
    opened by grayfallstown 1
  • fix: use latest hooks api to examples

    fix: use latest hooks api to examples

    My first PR.

    Maybe examples will be the main one, but I fixed it.

    It has been modified to the latest hooks API to avoid syntax errors. Also, todomvc has been updated with this examples as a reference.

    opened by activeguild 1
  • Out of root reference in TOML

    Out of root reference in TOML

    Hi, I can't build the example. I assume it's because of the Cargo.toml file.

    [dependencies]
    dioxus = { path = "../../../dioxus", features = ["desktop"] }
    

    Have a great day.

    opened by g-berthiaume 1
  • File explorer looks weird (no colours, no cells, maybe CSS isn't read?)

    File explorer looks weird (no colours, no cells, maybe CSS isn't read?)

    Screen Shot 2022-06-21 at 11 59 19 AM
    [package]
    name = "temp-dioxus"
    version = "0.1.0"
    edition = "2021"
    
    # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
    
    [dependencies]
    dioxus = { version = "0.2.4", features = ["desktop"] }
    log = "0.4.14"
    simple_logger = "1.13.0"
    
    opened by SamuelMarks 0
  • TodoMVC: How to build and run?

    TodoMVC: How to build and run?

    TodoMVC doesn't have any documentation of how to build and run the example.

    Simple cargo run fails with following error on Debian 11:

    panicked at 'cannot call wasm-bindgen imported functions on non-wasm targets', /home/malaire/.cargo/registry/src/localhost-86e39b43d7f3e3e9/js-sys-0.3.59/src/lib.rs:5365:1
    
    opened by malaire 2
  • "dog app" very confusing

    It's unclear what functionality the dog app is supposed to demonstrate. The rendered page doesn't seem to be related to dogs, and the "search" is unresponsive. None of the buttons appear to work. The compiler outputs a bunch of warnings.

    opened by rMazeiks 0
  • Todo app: marking item as done toggles editing

    Todo app: marking item as done toggles editing

    Steps to reproduce:

    • Open todo app and create an item
    • Mark the item as done by selecting its checkbox

    Result: Item is marked as done, but also activates editing – the content becomes an editable input field, as if it had been clicked.

    Expected result: Item is marked as done. Editing does not begin.

    opened by rMazeiks 1
  • weatherapp: controls are not interactive

    weatherapp: controls are not interactive

    In the weather app, there is a "search" bar as well as a list of locations to choose from. However, despite appearances, none of these are actually interactive – the entire interface is hard-coded.

    I would suggest either removing the controls or making an actual interactive app. The current example is likely to confuse anyone trying it out.

    opened by rMazeiks 0
  • Wifi Scanner: no networks found on Ubuntu

    Wifi Scanner: no networks found on Ubuntu

    When running the wifi scanner example on Ubuntu, it shows "no networks found" despite there being available Wifi connections according to the OS.

    Steps to reproduce:

    • Run Wifi scanner
    • Click "Scan" and wait

    Expected: A list of available Wifi connections

    Actual result: "No networks found. Try scanning"

    opened by rMazeiks 3
Owner
Dioxus
An elegant GUI library for Rust, inspired by React. Supports Web, Desktop, SSR, Liveview, and Mobile.
Dioxus
A fast lean and clean modern constraint programming solver implementation (in rust)

MaxiCP-rs This project aims at implementing a fast, and clean constraint programming solver with a focus on correctness, simplicity, maintainability a

Xavier Gillard 5 Dec 10, 2022
Small, clean, easy to use programming language

Thistle A modern, simplistic multi-paradigm language supporting object-oriented features Hello World! import IO object Main def main(): unit

null 7 Apr 13, 2022
Super-simple, fully Rust powered "memory" (doc store + semantic search) for LLM projects, semantic search, etc.

memex Super simple "memory" for LLM projects, semantic search, etc. Running the service Note that if you're running on Apple silicon (M1/M2/etc.), it'

Spyglass Search 15 Jun 19, 2023
Elemental System Designs is an open source project to document system architecture design of popular apps and open source projects that we want to study

Elemental System Designs is an open source project to document system architecture design of popular apps and open source projects that we want to study

Jason Shin 9 Apr 10, 2022
A typesafe, flexible, simple, and user-friendly unit system library for Rust that has good error messages.

uy A typesafe, flexible, simple, and user-friendly unit system library for Rust that has good error messages. Usage uy not only stores the unit of a v

Lachlan Sneff 19 Aug 8, 2023
Book - Actix user guides

User guides Actix User Guide Actix API Documentation (Development) Actix API Documentation (Releases) Actix Web User Guide Actix Web API Documentation

Actix 185 Dec 25, 2022
Checks Crusader Kings 3 user mod files for common mistakes and warns about them.

ck3-tiger Pounces on bugs. Checks Crusader Kings 3 user mod files for common mistakes and warns about them. For example: missing localizations, or usi

Richard Braakman 8 Jan 5, 2023
TUI (Text User Interface) - Get Instant feedback for your sh commands

Bashtastic Visualizer TUI (Text User Interface) - Get Instant feedback for your sh commands. Explore and play with your queries ??. The idea of this p

Alfredo Suarez 7 Nov 26, 2023
TypeRust - simple Rust playground where you can build or run your Rust code and share it with others

Rust playground Welcome to TypeRust! This is a simple Rust playground where you can build or run your Rust code and share it with others. There are a

Kirill Vasiltsov 28 Dec 12, 2022
Fegeya Elitebuild, small, powerful build system. Written in Rust.

Fegeya Elitebuild Small, powerful, work-in-progress build system. Written in Rust. Features: No functions (all are built-ins) All variables are global

Ferhat Geçdoğan 25 Nov 9, 2022
Build database expression type checker and vectorized runtime executor in type-safe Rust

Typed Type Exercise in Rust Build database expression type checker and vectorized runtime executor in type-safe Rust. This project is highly inspired

Andy Lok 89 Dec 27, 2022
A cargo subcommand to fetch the $OUT_DIR environment variable from build scripts

cargo-outdir A cargo subcommand to fetch the $OUT_DIR variable from build scripts. This is extremely useful to inspect the output of automatically gen

null 2 Sep 29, 2022
Leetcode Solutions in Rust, Advent of Code Solutions in Rust and more

RUST GYM Rust Solutions Leetcode Solutions in Rust AdventOfCode Solutions in Rust This project demostrates how to create Data Structures and to implem

Larry Fantasy 635 Jan 3, 2023
Simple autoclicker written in Rust, to learn the Rust language.

RClicker is an autoclicker written in Rust, written to learn more about the Rust programming language. RClicker was was written by me to learn more ab

null 7 Nov 15, 2022
Rust programs written entirely in Rust

mustang Programs written entirely in Rust Mustang is a system for building programs built entirely in Rust, meaning they do not depend on any part of

Dan Gohman 561 Dec 26, 2022
Rust 核心库和标准库的源码级中文翻译,可作为 IDE 工具的智能提示 (Rust core library and standard library translation. can be used as IntelliSense for IDE tools)

Rust 标准库中文版 这是翻译 Rust 库 的地方, 相关源代码来自于 https://github.com/rust-lang/rust。 如果您不会说英语,那么拥有使用中文的文档至关重要,即使您会说英语,使用母语也仍然能让您感到愉快。Rust 标准库是高质量的,不管是新手还是老手,都可以从中

wtklbm 493 Jan 4, 2023
A library for extracting #[no_mangle] pub extern "C" functions (https://docs.rust-embedded.org/book/interoperability/rust-with-c.html#no_mangle)

A library for extracting #[no_mangle] pub extern "C" functions In order to expose a function with C binary interface for interoperability with other p

Dmitrii - Demenev 0 Feb 17, 2022
clone of grep cli written in Rust. From Chapter 12 of the Rust Programming Language book

minigrep is a clone of the grep cli in rust Minigrep will find a query string in a file. To test it out, clone the project and run cargo run body poem

Raunak Singh 1 Dec 14, 2021
Rust-blog - Educational blog posts for Rust beginners

pretzelhammer's Rust blog ?? I write educational content for Rust beginners and Rust advanced beginners. My posts are listed below in reverse chronolo

kirill 5.2k Jan 1, 2023