diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-01 19:58:59 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-01 19:58:59 +0100 |
| commit | 10ff558853f549d3f3c7c8432488bfad9da6973a (patch) | |
| tree | 271b05fead384e2d91e5c8332fea9d00b540f0cc /gui/Cargo.toml | |
| parent | v4.0.7: finish the Phase 1 boundary with a command shell (diff) | |
| download | zagan-bet-10ff558853f549d3f3c7c8432488bfad9da6973a.tar.gz zagan-bet-10ff558853f549d3f3c7c8432488bfad9da6973a.zip | |
v4.1.0: add the egui workspace member and the roulette style spike
Phase 3 of the GUI plan. gui/ is a separate package that depends on the core with default features off, so egui never enters the TUI or server build graph. It carries the theme tokens and two embedded fonts (Open Sans OFL, Hack MIT), paints the felt, chips, cursor and wheel from RouletteView, and composes the persistent header with the betting sidebar.
The reference screen runs on demo state: arrow keys move the shared Cursor, clicks place chips, and SPIN animates a 2.4 s wheel that settles with the winning pocket under the pointer. No network until Phase 4.
Verified x86_64-pc-windows-gnu cross-compile. Measured on Linux at 1080p with llvmpipe: 6.0 MB binary (4.7 MB on Windows), 52 ms to window, 137 MB idle RSS, 0% idle CPU.
Diffstat (limited to '')
| -rw-r--r-- | gui/Cargo.toml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gui/Cargo.toml b/gui/Cargo.toml new file mode 100644 index 0000000..a2f4154 --- /dev/null +++ b/gui/Cargo.toml | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | [package] | ||
| 2 | name = "zagan-bet-gui" | ||
| 3 | version = "4.1.0" | ||
| 4 | edition = "2024" | ||
| 5 | license = "GPL-3.0-or-later" | ||
| 6 | description = "Desktop frontend for zagan-bet" | ||
| 7 | |||
| 8 | [[bin]] | ||
| 9 | name = "zagan-bet-gui" | ||
| 10 | path = "src/main.rs" | ||
| 11 | |||
| 12 | [dependencies] | ||
| 13 | # No default features: the GUI never links the server's native-tls. | ||
| 14 | zagan-bet = { path = "..", default-features = false } | ||
| 15 | # glow (OpenGL) rather than wgpu: no Vulkan runtime, and it cross-compiles to | ||
| 16 | # Windows with the mingw toolchain. Fonts are embedded, so no default_fonts. | ||
| 17 | eframe = { version = "0.37", default-features = false, features = [ | ||
| 18 | "glow", | ||
| 19 | "wayland", | ||
| 20 | "x11", | ||
| 21 | ] } | ||
