diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 23:20:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 23:20:07 +0100 |
| commit | d44f647e45745e1ce6073ec2a28dffb5887120dd (patch) | |
| tree | 5faccc829f087ed5abb38bd3f86cdf1497270c1f /Cargo.toml | |
| parent | PLN changed to Kromer (diff) | |
| download | zagan-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 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 20 |
1 files changed, 18 insertions, 2 deletions
| @@ -1,8 +1,24 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "zagan-bet" | 2 | name = "zagan-bet" |
| 3 | version = "3.1.0" | 3 | version = "3.1.1" |
| 4 | edition = "2024" | 4 | edition = "2024" |
| 5 | 5 | ||
| 6 | [features] | ||
| 7 | default = ["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 | ||
| 11 | server = ["native-tls"] | ||
| 12 | |||
| 13 | [[bin]] | ||
| 14 | name = "client" | ||
| 15 | path = "src/bin/client/main.rs" | ||
| 16 | |||
| 17 | [[bin]] | ||
| 18 | name = "server" | ||
| 19 | path = "src/bin/server/main.rs" | ||
| 20 | required-features = ["server"] | ||
| 21 | |||
| 6 | [dependencies] | 22 | [dependencies] |
| 7 | rusqlite = { version = "0.29", features = ["bundled"] } | 23 | rusqlite = { version = "0.29", features = ["bundled"] } |
| 8 | crossterm = "0.27" | 24 | crossterm = "0.27" |
| @@ -14,5 +30,5 @@ ctrlc = "3.4" | |||
| 14 | serde = { version = "1.0", features = ["derive"] } | 30 | serde = { version = "1.0", features = ["derive"] } |
| 15 | serde_json = "1.0" | 31 | serde_json = "1.0" |
| 16 | uuid = { version = "1.0", features = ["v4"] } | 32 | uuid = { version = "1.0", features = ["v4"] } |
| 17 | native-tls = "0.2" | 33 | native-tls = { version = "0.2", optional = true } |
| 18 | rustls = { version = "0.21", features = ["dangerous_configuration"] } | 34 | rustls = { version = "0.21", features = ["dangerous_configuration"] } |
