~/
rust-munich
·
crux + gpui
# Setup A handful of clones and one `cargo run`. Aim: you see the counter window before we explain any code. --- ## Prerequisites - **Rust toolchain** (stable). If you don't have it: ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` - **Git**. - **macOS** for the smoothest experience. Linux and Windows can work but gpui's polish is best on Mac. > Tip: if `rustup` is fresh, open a new terminal so `cargo` lands on your `PATH`. --- ## 1. Clone the workshop repo ```bash git clone https://github.com/rust-munich/hacking-evening.git cd rust-meetup-2026-q2-ideation ``` This repo contains: - `core/` — the crux core (pure logic). - `shell-gpui/` — the gpui shell (window, buttons, HTTP). - `workshop/` — these slides. --- ## 2. Build the app First build takes a while — gpui and its dependencies are not small. ```bash cargo build ``` Grab a coffee. When it's done: --- ## 3. Run the guinea pig ```bash cargo run -p shell-gpui ``` A window with `0` and two buttons should appear. Click `+` ten times — a weather card should fade in. --- ## Troubleshooting - **Window doesn't open / panics on macOS:** make sure you are on the latest stable Rust (`rustup update`). - **No weather card after `+10`:** check your network — the app calls `api.open-meteo.com`. No API key needed. - **`cargo` not found:** open a new terminal or `source $HOME/.cargo/env`.