efraim pushed a commit to branch rust-team
in repository guix.
commit 4e2bed2777dc7a833118281c2341b183e7997f81
Author: Efraim Flashner <[email protected]>
AuthorDate: Mon Dec 23 19:36:03 2024 +0200
gnu: Add rust-tokio-tungstenite-0.24.
* gnu/packages/crates-io.scm (rust-tokio-tungstenite-0.24): New
variable.
(rust-tokio-tungstenite-0.21): Inherit from rust-tokio-tungstenite-0.24.
Change-Id: I9ad571c40372d3e2588ca4e1871c16306f70b6d8
---
gnu/packages/crates-io.scm | 47 ++++++++++++++++++++++++++++++++++++++--------
1 file changed, 39 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c1ead50c16..c09e40e2d7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89511,8 +89511,46 @@ implementation of TLS for nonblocking I/O streams.")
("rust-security-framework" ,rust-security-framework-0.2)
("rust-tokio" ,rust-tokio-0.1))))))
+(define-public rust-tokio-tungstenite-0.24
+ (package
+ (name "rust-tokio-tungstenite")
+ (version "0.24.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tokio-tungstenite" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1nfw1i6yy120a14h1xagd4f31k3g1mz4rdxpvgh77jcd4i7ggigd"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list #:cargo-inputs (list rust-futures-util-0.3
+ rust-log-0.4
+ rust-native-tls-0.2
+ rust-rustls-0.23
+ rust-rustls-native-certs-0.8
+ rust-rustls-pki-types-1
+ rust-tokio-1
+ rust-tokio-native-tls-0.3
+ rust-tokio-rustls-0.26
+ rust-tungstenite-0.24
+ rust-webpki-roots-0.26)
+ #:cargo-development-inputs (list rust-env-logger-0.10
+ rust-futures-channel-0.3
+ rust-http-body-util-0.1
+ rust-hyper-1
+ rust-hyper-util-0.1
+ rust-tokio-1)))
+ (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 @code{WebSocket} implementation.")
+ (license license:expat)))
+
(define-public rust-tokio-tungstenite-0.21
(package
+ (inherit rust-tokio-tungstenite-0.24)
(name "rust-tokio-tungstenite")
(version "0.21.0")
(source
@@ -89522,7 +89560,6 @@ implementation of TLS for nonblocking I/O streams.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0f5wj0crsx74rlll97lhw0wk6y12nhdnqvmnjx002hjn08fmcfy8"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-futures-util" ,rust-futures-util-0.3)
("rust-log" ,rust-log-0.4)
@@ -89539,13 +89576,7 @@ implementation of TLS for nonblocking I/O streams.")
("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 @code{WebSocket} implementation.")
- (license license:expat)))
+ ("rust-url" ,rust-url-2))))))
(define-public rust-tokio-tungstenite-0.20
(package