Keru is an experimental GUI library.
It uses winit and wgpu for cross-platform support, but it has only been tested on Linux and Windows.
See the docs for the master branch for more information.
The best way to get started is to clone the repository and explore the examples.
There are three heavily commented examples that act as a tutorial:
Screenshot of the minimal.rs example and its code.
Examples use the run_example_loop helper, but the "intended" way to use the library is from a user-managed winit/wgpu loop. See the window_loop.rs example.
Screenshot of the showcase.rs example:
Screenshot of the aesthetics_modern.rs example.
(The design is heavily inspired by an example in the Vizia library).
Recording of the aesthetics_scifi.rs example. It uses a stateful Component to create a reusable button with a hover animation and a blinking ripple click effect.
It also uses canvas_drawing to draw a 3D wireframe, just for fun.
aesthetics_scifi.mp4
Screenshot of a basic paint program. The canvas and the color picker are rendered with custom wgpu code.