Crate relm4

source ·
Expand description

An idiomatic GUI library inspired by Elm and based on gtk4-rs.

Docs of related crates: relm4 | relm4-macros | relm4-components | gtk4-rs | gtk-rs-core | libadwaita-rs | libpanel-rs

GitHub | Website | Book | Blog



  • A module for convenient abstractions over gtk-rs.
  • Action utility.
  • Easy data bindings between objects.
  • Components are smaller mostly independent parts of your application.
  • Defines traits and data types to generate widgets from collections efficiently.
  • Utilities for removing temporary widgets from async factories or components.
  • Commonly-imported traits and types.
  • Shared state that can be accessed by many components.
  • Cancellation mechanism used by Relm4.
  • Typed views.




  • Defines the maximum number of background threads to spawn for handling blocking tasks.
  • Defines how many threads that Relm4 should use for background tasks.



Attribute Macros§

  • componentmacros
    Macro that implements relm4::Component or relm4::SimpleComponent and generates the corresponding widgets struct.
  • factorymacros
    Macro that implements relm4::factory::FactoryComponent and generates the corresponding widgets struct.
  • A macro to generate widget templates.