From d44f647e45745e1ce6073ec2a28dffb5887120dd Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 23:20:07 +0100 Subject: v3.1.1: make native-tls optional so the client cross-compiles without OpenSSL --- Cargo.toml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index f212238..d13a16c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,24 @@ [package] name = "zagan-bet" -version = "3.1.0" +version = "3.1.1" edition = "2024" +[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" @@ -14,5 +30,5 @@ ctrlc = "3.4" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" uuid = { version = "1.0", features = ["v4"] } -native-tls = "0.2" +native-tls = { version = "0.2", optional = true } rustls = { version = "0.21", features = ["dangerous_configuration"] } -- cgit v1.2.3