Movatterモバイル変換


[0]ホーム

URL:


LapdevPerformant cloud dev environmentLapdev DocsLapdev Blog
LapceOpen source code editorLapce PluginsLapce Docs
FloemCross platform GUI toolkit for RustFloem Docs
Lapdev PricingFind the plans for Lapdev
Lapdev DashboardDashboard of Lapdev platform
Lapdev StatusStatus page of Lapdev platform

Cross-platform GUI framework for Rust

Floem is cross-platform GUI framework for Rust 🦀. It aims to be extremely performant while providing world-class developer ergonomics.

usefloem::{    reactive::create_signal,    views::{button, label, Decorators},    IntoView,};fnapp_view() -> impl IntoView {// Create a reactive signal with a counter value, defaulting to 0let(counter,mut set_counter)=create_signal(0);// Create a vertical layout    (// The counter value updates automatically, thanks to reactivitylabel(move||format!("Value:{counter}")),// Create a horizontal layout        (button("Increment").action(move|| set_counter+=1),button("Decrement").action(move|| set_counter-=1),        ),    ).style(|s| s.flex_col())}fnmain() {    floem::launch(app_view);}

Cross platform support with bare metal performance

Supporting both GPU and CPU rendering, Floem gives you performance that's closest to bare metal. Also primitives are provided to help the developer to write performant UI code without too much effect.

Cross-platform support

Supports Windows, macOS and Linux with rendering usingwgpu. In case a GPU is unavailable, a CPU renderer powered bytiny-skia will be used.

Fine-grained reactivity

The entire library is built around reactive primitives inspired byleptos_reactive. The reactive "signals" allow you to keep your UI up-to-date with minimal effort, all while maintaining very high performance.

Performance

The view tree is only run once, safeguarding you from accidentally creating a bottleneck in a view generation function that slows down your entire application. Floem also provides tools to help you write efficient UI code, such as avirtual list.

Flexbox layout

UsingTaffy, the library provides the Flexbox (or Grid) layout system, which can be applied to any View node.

Customisable widgets

Don't want the default look? You can change pretty much anything you want using the styling API, or install a third-party theme.

Element inspector

Inspired by your browser's developer tools, Floem provides adiagnostic tool to debug your layout.

Supported platforms

Desktop

Linux, Windows, macOS

Web

Experimental support through WebGPU

Mobile

Planned support

Lapdev

Dev Tools

Lapdev Platform

Resources

Company


[8]ページ先頭

©2009-2025 Movatter.jp