Skip to content

sukhmel/rust-gui-experiments

Repository files navigation

rust-gui-experiments

gpui by Zed Industries

#MadeWithSlint ratatui

Trying out different GUI crates, just to get to know what is possible and how to do it.

As a sample task Sudoku game is implemented with different feature-gated UIs:

Other examples for wasm are wasm-bindgen's and fosskers's (repo)

I planned to try doing in with Tauri, but it appeared too complicated for me to get on the first try.

running most versions

Each GUI is gated behind a feature with the same name:

cargo run --features floem
cargo run --features iced
cargo run --features slint
cargo run --features egui
cargo run --features gpui
cargo run --features xilem
cargo run --features leptos
cargo run --features rui
cargo run --features ratatui
cargo run --features kas

GPUI on macOS

GPUI will require metal to be installed, so you will need full Xcode app (not just command line tools). Then likely:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
xcodebuild -runFirstLaunch
xcodebuild -downloadComponent MetalToolchain

running wasm version

wasm-pack build --target web --features wasm
miniserve . --index "index.html" -p 8080

Screenshots

egui

floem

iced

slint

wasm

gpui

ratatui

About

Experiments in implementing GUI in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages