summaryrefslogtreecommitdiff
path: root/server/client-lib/Cargo.toml
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-11 00:22:49 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-11 00:30:43 +0200
commitf4499b7a0e808d84157e6148afef4f844a7007cf (patch)
tree354d970af16a4b3d6217575d259cf1afc0faf291 /server/client-lib/Cargo.toml
parent0f6a824cb4c6d36dda485a939d9c640ec234d802 (diff)
downloadhurrycurry-f4499b7a0e808d84157e6148afef4f844a7007cf.tar
hurrycurry-f4499b7a0e808d84157e6148afef4f844a7007cf.tar.bz2
hurrycurry-f4499b7a0e808d84157e6148afef4f844a7007cf.tar.zst
factor out client network code to client-lib
Diffstat (limited to 'server/client-lib/Cargo.toml')
-rw-r--r--server/client-lib/Cargo.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/client-lib/Cargo.toml b/server/client-lib/Cargo.toml
index 6a3e7f98..45361d29 100644
--- a/server/client-lib/Cargo.toml
+++ b/server/client-lib/Cargo.toml
@@ -5,3 +5,18 @@ edition = "2021"
[dependencies]
hurrycurry-protocol = { path = "../protocol" }
+tungstenite = { version = "0.23.0", optional = true, features = [
+ "rustls-tls-native-roots",
+] }
+tokio-tungstenite = { version = "0.23.1", optional = true }
+tokio = { version = "1.39.2", features = ["net"], optional = true }
+serde_json = "1.0.120"
+bincode = "2.0.0-rc.3"
+log = "0.4.22"
+anyhow = "1.0.86"
+futures-util = { version = "0.3.30", optional = true }
+
+[features]
+default = ["sync-network", "tokio-network"]
+sync-network = ["dep:tungstenite"]
+tokio-network = ["dep:tokio-tungstenite", "dep:tokio", "dep:futures-util"]