Expand description
Freya
Build native & cross-platform GUI applications using 🦀 Rust.
Powered by 🧬 Dioxus and 🎨 Skia.
use freya::prelude::*;
fn main(){
    launch(app);
}
fn app(cx: Scope) -> Element {
   let mut count = use_state(cx, || 0);
   render!(
       rect {
           height: "100%",
           width: "100%",
           background: "rgb(35, 35, 35)",
           color: "white",
           padding: "12",
           onclick: move |_| count += 1,
           label { "Click to increase -> {count}" }
       }
   )
}
Features flags
devtools: Enables a side panel to inspect your App tree, styles and computed layout.use_camera: Enables theuse_camerahook.log: Enables internal logs.
Re-exports
pub use dioxus;pub use torin;
Modules
- Common data structures and utils.
 - Collection of basic components.
 - Elements namespace and attributes.
 - Events and their data.
 - Useful utilities.
 - Hotreload configuration.
 - Launch your application.
 - Useful imports.