summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 16ed8c6c5cc3af4fb83181203a32544fc3a6b7ba (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[workspace]
members = ["gui"]

[package]
name = "zagan-bet"
version = "4.4.0"
edition = "2024"
license = "GPL-3.0-or-later"

[features]
default = ["server"]
# The server links native-tls (OpenSSL). The client is rustls-only, so 32-bit
# builds can skip the server dependency entirely:
#   cargo build --bin client --no-default-features --target i686-unknown-linux-gnu
server = ["native-tls"]

[[bin]]
name = "client"
path = "src/bin/client/main.rs"

[[bin]]
name = "server"
path = "src/bin/server/main.rs"
required-features = ["server"]

[dependencies]
rusqlite = { version = "0.29", features = ["bundled"] }
crossterm = "0.27"
bcrypt = "0.15"
rand = "0.8"
parking_lot = "0.12"
sha2 = "0.10"
ctrlc = "3.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
uuid = { version = "1.0", features = ["v4"] }
native-tls = { version = "0.2", optional = true }
rustls = { version = "0.21", features = ["dangerous_configuration"] }

# The GUI ships as one self-contained binary; the TUI and server keep the
# default release profile. Build with:
#   cargo build -p zagan-bet-gui --profile gui-release
[profile.gui-release]
inherits = "release"
opt-level = "z"
lto = true
codegen-units = 1
strip = true