summaryrefslogtreecommitdiffstats
path: root/gui/Cargo.toml
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-01 22:02:52 +0100
committersalmonik <salmonik@tuta.io>2026-11-01 22:02:52 +0100
commiteca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb (patch)
tree3dcee368dce18a468ac0d629015612cc720eaac3 /gui/Cargo.toml
parentdocs: record the v4.3.0 packaging verification (diff)
downloadzagan-bet-eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb.tar.gz
zagan-bet-eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb.zip
v4.3.1: render Windows through wgpu and keep the installer window open
Windows 10 1809 sessions with only the Microsoft display driver expose OpenGL 1.1, which egui_glow refuses. The Windows build now uses wgpu on Direct3D 12 and its adapter selector accepts WARP, the software rasterizer, after every hardware class, so a VM or Remote Desktop session still starts. Linux keeps the smaller glow renderer. The GUI is a windows-subsystem binary now, so launching it from the Start menu does not flash a console; startup failures and --help go to a native message box. The PowerShell installer pauses before closing unless -NoPause is passed.
Diffstat (limited to 'gui/Cargo.toml')
-rw-r--r--gui/Cargo.toml17
1 files changed, 12 insertions, 5 deletions
diff --git a/gui/Cargo.toml b/gui/Cargo.toml
index 8bcbda0..24bf560 100644
--- a/gui/Cargo.toml
+++ b/gui/Cargo.toml
@@ -1,6 +1,6 @@
1[package] 1[package]
2name = "zagan-bet-gui" 2name = "zagan-bet-gui"
3version = "4.3.0" 3version = "4.3.1"
4edition = "2024" 4edition = "2024"
5license = "GPL-3.0-or-later" 5license = "GPL-3.0-or-later"
6description = "Desktop frontend for zagan-bet" 6description = "Desktop frontend for zagan-bet"
@@ -12,12 +12,19 @@ path = "src/main.rs"
12[dependencies] 12[dependencies]
13# No default features: the GUI never links the server's native-tls. 13# No default features: the GUI never links the server's native-tls.
14zagan-bet = { path = "..", default-features = false } 14zagan-bet = { path = "..", default-features = false }
15# glow (OpenGL) rather than wgpu: no Vulkan runtime, and it cross-compiles to 15rusqlite = { version = "0.29", features = ["bundled"] }
16# Windows with the mingw toolchain. Fonts are embedded, so no default_fonts. 16sha2 = "0.10"
17
18# Linux uses glow (OpenGL): small, and every desktop has a usable driver.
19# Windows uses wgpu on Direct3D 12, which also has the WARP software adapter on
20# machines with no OpenGL driver (Windows 10 1809 over Remote Desktop, VMs).
21[target.'cfg(windows)'.dependencies]
22eframe = { version = "0.37", default-features = false, features = ["wgpu"] }
23windows-sys = { version = "0.59", features = ["Win32_UI_WindowsAndMessaging"] }
24
25[target.'cfg(not(windows))'.dependencies]
17eframe = { version = "0.37", default-features = false, features = [ 26eframe = { version = "0.37", default-features = false, features = [
18 "glow", 27 "glow",
19 "wayland", 28 "wayland",
20 "x11", 29 "x11",
21] } 30] }
22rusqlite = { version = "0.29", features = ["bundled"] }
23sha2 = "0.10"