summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-29 23:20:07 +0100
committersalmonik <salmonik@tuta.io>2026-10-29 23:20:07 +0100
commitd44f647e45745e1ce6073ec2a28dffb5887120dd (patch)
tree5faccc829f087ed5abb38bd3f86cdf1497270c1f /Cargo.toml
parentPLN changed to Kromer (diff)
downloadzagan-bet-d44f647e45745e1ce6073ec2a28dffb5887120dd.tar.gz
zagan-bet-d44f647e45745e1ce6073ec2a28dffb5887120dd.zip
v3.1.1: make native-tls optional so the client cross-compiles without OpenSSL
Diffstat (limited to '')
-rw-r--r--Cargo.toml20
1 files changed, 18 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f212238..d13a16c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,8 +1,24 @@
1[package] 1[package]
2name = "zagan-bet" 2name = "zagan-bet"
3version = "3.1.0" 3version = "3.1.1"
4edition = "2024" 4edition = "2024"
5 5
6[features]
7default = ["server"]
8# The server links native-tls (OpenSSL). The client is rustls-only, so 32-bit
9# builds can skip the server dependency entirely:
10# cargo build --bin client --no-default-features --target i686-unknown-linux-gnu
11server = ["native-tls"]
12
13[[bin]]
14name = "client"
15path = "src/bin/client/main.rs"
16
17[[bin]]
18name = "server"
19path = "src/bin/server/main.rs"
20required-features = ["server"]
21
6[dependencies] 22[dependencies]
7rusqlite = { version = "0.29", features = ["bundled"] } 23rusqlite = { version = "0.29", features = ["bundled"] }
8crossterm = "0.27" 24crossterm = "0.27"
@@ -14,5 +30,5 @@ ctrlc = "3.4"
14serde = { version = "1.0", features = ["derive"] } 30serde = { version = "1.0", features = ["derive"] }
15serde_json = "1.0" 31serde_json = "1.0"
16uuid = { version = "1.0", features = ["v4"] } 32uuid = { version = "1.0", features = ["v4"] }
17native-tls = "0.2" 33native-tls = { version = "0.2", optional = true }
18rustls = { version = "0.21", features = ["dangerous_configuration"] } 34rustls = { version = "0.21", features = ["dangerous_configuration"] }