summaryrefslogtreecommitdiffstats
path: root/gui/Cargo.toml
blob: 24bf5606a707593fd7a8f1bfe682d8b48c2163bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[package]
name = "zagan-bet-gui"
version = "4.3.1"
edition = "2024"
license = "GPL-3.0-or-later"
description = "Desktop frontend for zagan-bet"

[[bin]]
name = "zagan-bet-gui"
path = "src/main.rs"

[dependencies]
# No default features: the GUI never links the server's native-tls.
zagan-bet = { path = "..", default-features = false }
rusqlite = { version = "0.29", features = ["bundled"] }
sha2 = "0.10"

# Linux uses glow (OpenGL): small, and every desktop has a usable driver.
# Windows uses wgpu on Direct3D 12, which also has the WARP software adapter on
# machines with no OpenGL driver (Windows 10 1809 over Remote Desktop, VMs).
[target.'cfg(windows)'.dependencies]
eframe = { version = "0.37", default-features = false, features = ["wgpu"] }
windows-sys = { version = "0.59", features = ["Win32_UI_WindowsAndMessaging"] }

[target.'cfg(not(windows))'.dependencies]
eframe = { version = "0.37", default-features = false, features = [
    "glow",
    "wayland",
    "x11",
] }