Evan Almloff 9942c8bfd1 Fix asset bundling in the CLI (#2145) 1 jaar geleden
..
assets c113d96bbe fix: Update logos and custom assets example (#960) 2 jaren geleden
app.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden
assets.rs 3008870818 Cleanup runtime code 1 jaar geleden
config.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden
desktop_context.rs 4b2e426958 clippy, and don't hash invisible files for ts generation 1 jaar geleden
edits.rs 127709f83f Tiny aesthetic tweaks 1 jaar geleden
element.rs dccfba12d8 Merge branch 'master' into events-2 1 jaar geleden
eval.rs cbadea022a Eval should never return an error 1 jaar geleden
event_handlers.rs 94b17cc8ca Fix non tokio builds for desktop 1 jaar geleden
events.rs 624e58bd78 native file drop 1 jaar geleden
file_upload.rs 81f38a0bc5 cfg out globalhotkey 1 jaar geleden
hooks.rs f8a8ee3e29 fix clippy 1 jaar geleden
index.html 2e9737ef57 Clean up and document the protocol handler 1 jaar geleden
ipc.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden
launch.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden
lib.rs 4bb807a3ce Reduce churn in window behavior 1 jaar geleden
menubar.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden
mobile_shortcut.rs 4b2e426958 clippy, and don't hash invisible files for ts generation 1 jaar geleden
protocol.rs 9942c8bfd1 Fix asset bundling in the CLI (#2145) 1 jaar geleden
query.rs 4b2e426958 clippy, and don't hash invisible files for ts generation 1 jaar geleden
readme.md 1dde044697 remove cx.render 1 jaar geleden
shortcut.rs 81f38a0bc5 cfg out globalhotkey 1 jaar geleden
waker.rs 4b2e426958 clippy, and don't hash invisible files for ts generation 1 jaar geleden
webview.rs e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116) 1 jaar geleden

readme.md

Dioxus Desktop Renderer

Render the Dioxus VirtualDom using the platform's native WebView implementation.

Desktop

One of Dioxus' flagship features is the ability to quickly build a native desktop app that looks and feels the same across platforms. Apps built with Dioxus are typically <5mb in size and use existing system resources, so they won't hog extreme amounts of RAM or memory.

Dioxus Desktop is built off Tauri. Right now there aren't any Dioxus abstractions over the menubar, handling, etc, so you'll want to leverage Tauri - mostly Wry and Tao directly. An upcoming release of Dioxus-Desktop will include components and hooks for notifications, global shortcuts, menubar, etc.

Getting Set up

Getting Set up with Dioxus-Desktop is quite easy. Make sure you have Rust and Cargo installed, and then create a new project:

$ cargo new --bin demo
$ cd app

Add Dioxus and the desktop renderer feature:

$ cargo add dioxus
$ cargo add dioxus-desktop

Edit your main.rs:

// main.rs
use dioxus::prelude::*;

fn main() {
    dioxus_desktop::launch(app);
}

fn app() -> Element {
    rsx!{
        div {
            "hello world!"
        }
    })
}

To configure the webview, menubar, and other important desktop-specific features, checkout out some of the launch configuration in the API reference.

Future Steps

Make sure to read the Dioxus Guide if you already haven't!