Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Linux
A native Rust UI library with fine-grained reactivity
Saved setup from 11 h ago
Will it work on Linux?
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/lapce/floem.git cd floem
Rust stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo build
cargo run
cargo test
use floem::prelude::*;
fn main() {
floem::launch(counter_view);
}
fn counter_view() -> impl IntoView {
let mut counter = RwSignal::new(0);
Stack::horizontal((
Button::new("Increment").action(move || counter += 1),
Label::derived(move || format!("Value: {counter}")),
Button::new("Decrement").action(move || counter -= 1),
))
.style(|s| s.size_full().items_center().justify_center().gap(10))
}
<img src="docs/img/quickstart.jpg" width="300"/>No reports for Linux yet.
GitManual AI Agent reads the 6 key files and writes a step-by-step guide for Linux. Once written, it's saved for everyone.