summary refs log tree commit diff
diff options
context:
space:
mode:
authorVÖRÖSKŐI András <voroskoi@gmail.com>2023-11-11 16:35:42 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:56:29 +0200
commit899a3ab91073f59ea366f1a0da66e501981145ad (patch)
treec2b50e9c87be11d2e763e170749deb7e20d2e650
parent2e984a7b629464da64bfc484d2d8bea73d726214 (diff)
downloadguix-899a3ab91073f59ea366f1a0da66e501981145ad.tar.gz
gnu: Add rust-tokio-tungstenite-0.19.
* gnu/packages/crates-io.scm (rust-tokio-tungstenite-0.19): New variable.

Change-Id: I3226df3171877f0de59efaabacc892119231bb44
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1cd0b401df..d5741f831f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -82013,6 +82013,43 @@ implementation of TLS for nonblocking I/O streams.")
     (description "Core primitives for tokio-trace.")
     (license license:expat)))
 
+(define-public rust-tokio-tungstenite-0.19
+  (package
+    (name "rust-tokio-tungstenite")
+    (version "0.19.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tokio-tungstenite" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0b5iqjsprll88912jqb36xbjcflmgl907w3lgi14634sdv4rll7c"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-futures-util" ,rust-futures-util-0.3)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-native-tls" ,rust-native-tls-0.2)
+        ("rust-rustls" ,rust-rustls-0.21)
+        ("rust-rustls-native-certs" ,rust-rustls-native-certs-0.6)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-tokio-rustls" ,rust-tokio-rustls-0.24)
+        ("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3)
+        ("rust-tungstenite" ,rust-tungstenite-0.19)
+        ("rust-webpki-roots" ,rust-webpki-roots-0.23))
+       #:cargo-development-inputs
+       (("rust-env-logger" ,rust-env-logger-0.10)
+        ("rust-futures-channel", rust-futures-channel-0.3)
+        ("rust-hyper" ,rust-hyper-0.14)
+        ("rust-tokio" ,rust-tokio-1)
+        ("rust-url" ,rust-url-2))))
+    (home-page "https://github.com/snapview/tokio-tungstenite")
+    (synopsis "Tokio binding for Tungstenite")
+    (description
+     "This package provides Tokio binding for Tungstenite, the lightweight
+stream-based WebSocket implementation.")
+    (license license:expat)))
+
 (define-public rust-tokio-tungstenite-0.11
   (package
     (name "rust-tokio-tungstenite")