[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/63: gnu: Add rust-tungstenite-0.20.
From: |
guix-commits |
Subject: |
20/63: gnu: Add rust-tungstenite-0.20. |
Date: |
Thu, 8 Feb 2024 14:09:30 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit dbb5105571656ec55af57372b8455e96cbba83b2
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Feb 7 16:54:55 2024 +0200
gnu: Add rust-tungstenite-0.20.
* gnu/packages/crates-web.scm (rust-tungstenite-0.20): New variable.
(rust-tungstenite-0.19): Inherit from rust-tungstenite-0.20.
Change-Id: I900e4d59a720c317d9142d7e0b51789b86b44cbe
---
gnu/packages/crates-web.scm | 56 ++++++++++++++++++++++++++++++++++++---------
1 file changed, 45 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index f57cc5c162..f074542251 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -4743,8 +4743,52 @@ the Trust-DNS client to use rustls for TLS.")
(("rust-openssl" ,rust-openssl-0.10)
("rust-tokio" ,rust-tokio-0.1))))))
+(define-public rust-tungstenite-0.20
+ (package
+ (name "rust-tungstenite")
+ (version "0.20.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tungstenite" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1fbgcv3h4h1bhhf5sqbwqsp7jnc44bi4m41sgmhzdsk2zl8aqgcy"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-data-encoding" ,rust-data-encoding-2)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-httparse" ,rust-httparse-1)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-native-tls" ,rust-native-tls-0.2)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-rustls" ,rust-rustls-0.21)
+ ("rust-rustls-native-certs"
,rust-rustls-native-certs-0.6)
+ ("rust-sha1" ,rust-sha1-0.10)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-url" ,rust-url-2)
+ ("rust-utf-8" ,rust-utf-8-0.7)
+ ("rust-webpki-roots" ,rust-webpki-roots-0.24))
+ #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5)
+ ("rust-env-logger" ,rust-env-logger-0.10)
+ ("rust-input-buffer" ,rust-input-buffer-0.5)
+ ("rust-net2" ,rust-net2-0.2)
+ ("rust-rand" ,rust-rand-0.8))))
+ (home-page "https://github.com/snapview/tungstenite-rs")
+ (synopsis "Lightweight stream-based WebSocket implementation")
+ (description
+ "This library provides an implementation of WebSockets, RFC6455. It
+allows for both synchronous (like TcpStream) and asynchronous usage and is
+easy to integrate into any third-party event loops including MIO. The API
+design abstracts away all the internals of the WebSocket protocol but still
+makes them accessible for those who wants full control over the network.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-tungstenite-0.19
(package
+ (inherit rust-tungstenite-0.20)
(name "rust-tungstenite")
(version "0.19.0")
(source
@@ -4754,7 +4798,6 @@ the Trust-DNS client to use rustls for TLS.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0rxzxg4y22rsvdvs4la7igy9117yidc2m6lsfm2hf0xvsska3yqm"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-byteorder" ,rust-byteorder-1)
@@ -4778,16 +4821,7 @@ the Trust-DNS client to use rustls for TLS.")
("rust-env-logger" ,rust-env-logger-0.10)
("rust-input-buffer" ,rust-input-buffer-0.5)
("rust-net2" ,rust-net2-0.2)
- ("rust-rand" ,rust-rand-0.8))))
- (home-page "https://github.com/snapview/tungstenite-rs")
- (synopsis "Lightweight stream-based WebSocket implementation")
- (description
- "This library provides an implementation of WebSockets, RFC6455. It
-allows for both synchronous (like TcpStream) and asynchronous usage and is
-easy to integrate into any third-party event loops including MIO. The API
-design abstracts away all the internals of the WebSocket protocol but still
-makes them accessible for those who wants full control over the network.")
- (license (list license:expat license:asl2.0))))
+ ("rust-rand" ,rust-rand-0.8))))))
(define-public rust-tungstenite-0.11
(package
- 13/63: gnu: Add rust-rustls-webpki-0.102., (continued)
- 13/63: gnu: Add rust-rustls-webpki-0.102., guix-commits, 2024/02/08
- 10/63: gnu: Add rust-aws-lc-rs-1., guix-commits, 2024/02/08
- 11/63: gnu: Add rust-rcgen-0.12., guix-commits, 2024/02/08
- 18/63: gnu: rust-csv-core-0.1: Update to 0.1.11., guix-commits, 2024/02/08
- 17/63: gnu: Add rust-tokio-rustls-0.25., guix-commits, 2024/02/08
- 19/63: gnu: rust-csv-1: Update to 1.3.0., guix-commits, 2024/02/08
- 21/63: gnu: Add rust-tokio-tungstenite-0.20., guix-commits, 2024/02/08
- 22/63: gnu: rust-webpki-roots-0.25: Update to 0.25.4., guix-commits, 2024/02/08
- 23/63: gnu: rbw: Update to 1.9.0., guix-commits, 2024/02/08
- 24/63: gnu: rust-arg-enum-proc-macro-0.3: Update to 0.3.4., guix-commits, 2024/02/08
- 20/63: gnu: Add rust-tungstenite-0.20.,
guix-commits <=
- 25/63: gnu: Add rust-bitstream-io-2., guix-commits, 2024/02/08
- 26/63: gnu: Add rust-built-0.7., guix-commits, 2024/02/08
- 28/63: gnu: rust-interpolate-name-0.2: Update to 0.2.4., guix-commits, 2024/02/08
- 27/63: gnu: Add rust-cargo-lock-9., guix-commits, 2024/02/08
- 29/63: gnu: rust-js-sys-0.3: Update to 0.3.68., guix-commits, 2024/02/08
- 30/63: gnu: Add rust-libfuzzer-sys-0.4., guix-commits, 2024/02/08
- 31/63: gnu: rust-nom-7: Update to 7.1.3., guix-commits, 2024/02/08
- 35/63: gnu: Add rust-tracing-log-0.2., guix-commits, 2024/02/08
- 47/63: gnu: rust-ivf-0.1: Update to 0.1.3., guix-commits, 2024/02/08
- 40/63: gnu: rust-wasm-bindgen-macro-0.2: Update to 0.2.91., guix-commits, 2024/02/08