Expand description
§Freya
Build native & cross-platform GUI applications using 🦀 Rust.
Powered by 🧬 Dioxus and 🎨 Skia.
- Elements API reference
- Events API reference
- Elements guides
- Components
- Hooks
- Theming
- Hot reload
- Testing
- Animating
- Devtools
use freya::prelude::*;
fn main(){
launch(app);
}
fn app() -> Element {
let mut count = use_signal(|| 0);
rsx!(
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_camera
hook.log
: enables internal logs.
Re-exports§
pub use dioxus;
pub use dioxus_core;
pub use torin;
Modules§
- Freya docs.
- Common data structures and utils.
- Collection of basic components.
- Core APIs.
- Elements, attributes and events definitions.
- Events data.
- Useful utilities.
- Hot reload configuration.
- Launch your app.
- Useful imports.