From patchwork Mon Jan 8 01:53:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilko Meyer X-Patchwork-Id: 58582 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C880027BBE2; Mon, 8 Jan 2024 01:59:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1215527BBEB for ; Mon, 8 Jan 2024 01:59:08 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMesv-0008R0-2u; Sun, 07 Jan 2024 20:57:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMest-0008Ld-AJ for guix-patches@gnu.org; Sun, 07 Jan 2024 20:56:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMest-0004mE-1m for guix-patches@gnu.org; Sun, 07 Jan 2024 20:56:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMesy-0000Pf-U5 for guix-patches@gnu.org; Sun, 07 Jan 2024 20:57:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68312] [PATCH 142/156] gnu: Add rust-tungstenite-0.20. Resent-From: Wilko Meyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jan 2024 01:57:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68312 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68312@debbugs.gnu.org Cc: Wilko Meyer Received: via spool by 68312-submit@debbugs.gnu.org id=B68312.17046790191465 (code B ref 68312); Mon, 08 Jan 2024 01:57:04 +0000 Received: (at 68312) by debbugs.gnu.org; 8 Jan 2024 01:56:59 +0000 Received: from localhost ([127.0.0.1]:34565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMest-0000NR-EU for submit@debbugs.gnu.org; Sun, 07 Jan 2024 20:56:59 -0500 Received: from mail.wmeyer.eu ([95.216.196.112]:48678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMerG-0008Da-1q for 68312@debbugs.gnu.org; Sun, 07 Jan 2024 20:55:23 -0500 From: Wilko Meyer DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wmeyer.eu; s=mail; t=1704678911; bh=ZUVX4HQuqKemEvkjX/ylSNMWqfHBD6Dyqb9+Rp8ujSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=p9aV8c+ev4J97wB7nddWvHtNdxJ2tVaYpdVNg0khxeoPJa/rHqBHmhc70W4fAjgmE gvA788Q5P4mgXPceV+WYA9VepvDA9DkotGd0gq72QI3PrtSqEWZKvcNv/fbxbjzdSq QmkfGCnNvqJeQnG5wMt8po2lk4fX+JZczrC8ZGxs= Date: Mon, 8 Jan 2024 02:53:59 +0100 Message-ID: <8ade06d2fc50840d6a3d68c12e279e410f3da65f.1704675831.git.w@wmeyer.eu> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-tungstenite-0.20): New variable. (rust-tungstenite-0.19): Inherit from rust-tungstenite-0.20. Change-Id: I73c034a3d008c32d0156fce9d201338f1386182e --- gnu/packages/crates-io.scm | 52 ++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cee7f4877f8..5ccd7ef0b66 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -81660,8 +81660,48 @@ (define-public rust-tuikit-0.2 #:cargo-development-inputs (("rust-env-logger" ,rust-env-logger-0.6)))))) +(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 + `(#:skip-build? #t + #: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)))) + (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 @@ -81671,7 +81711,6 @@ (define-public rust-tungstenite-0.19 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0rxzxg4y22rsvdvs4la7igy9117yidc2m6lsfm2hf0xvsska3yqm")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) @@ -81695,16 +81734,7 @@ (define-public rust-tungstenite-0.19 ("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