From patchwork Tue Jan 30 15:25:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 59619 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 E13C027BBEA; Tue, 30 Jan 2024 15:53:07 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 6BB3C27BBE9 for ; Tue, 30 Jan 2024 15:53:06 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUqP2-0007ug-WF; Tue, 30 Jan 2024 10:52: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 1rUqOz-0007uM-TW for guix-patches@gnu.org; Tue, 30 Jan 2024 10:51:57 -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 1rUqOz-0003RN-Kn for guix-patches@gnu.org; Tue, 30 Jan 2024 10:51:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUqP8-0008Vs-Hv; Tue, 30 Jan 2024 10:52:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68819] [PATCH 20/49] gnu: Add rust-futures-lite-2. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 30 Jan 2024 15:52:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68819 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68819@debbugs.gnu.org Cc: Herman Rimm , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 68819-submit@debbugs.gnu.org id=B68819.170662990832620 (code B ref 68819); Tue, 30 Jan 2024 15:52:06 +0000 Received: (at 68819) by debbugs.gnu.org; 30 Jan 2024 15:51:48 +0000 Received: from localhost ([127.0.0.1]:36386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUqOp-0008Tz-Se for submit@debbugs.gnu.org; Tue, 30 Jan 2024 10:51:48 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:54251 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUq0L-0007Za-GM for 68819@debbugs.gnu.org; Tue, 30 Jan 2024 10:26:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1706628375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GcUCXOLV7qvmOnvm6GNIIOKi5e29TruT4FahHsQcekU=; b=BSpCWAdAmg5t35pA+hL+Dos9MwDuSts7bNmzX3+2f819bY/cHEb0nj9auh0FTeLbKK1/cO KoMT01dovYQFGsJdJlY5Z/g4MeLYvbjhJjBbr/djxr2SHSEyDir4BJKtC4E09C/My1Rf4c jgJpkFT84ZAkmmm7UxQXGxydBnU1ccGW1iJA/BoZsVvd+lI1eAmgY5DMUiopHJwKb/Suxj /DTpIKwxbc07VzIwXh3gfxxWfSsngpNP5sowjxYqzFgkmmkZe5d/FZlrm+VzQweGn13GBo dCX8i51+CTywOWwymZSqDtBOaC5Fu0r6Kybkwym5iP0GRrz+Y1qOnc6YGYbdYQ== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id e46239cc (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 30 Jan 2024 15:26:15 +0000 (UTC) Date: Tue, 30 Jan 2024 16:25:03 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 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: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm 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-futures-lite-2): Add variable. (rust-futures-lite-1): Inherit from rust-futures-lite-2. Change-Id: I46772a91a10fba58351ee47c5acc8b11cb777f9b --- gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e37132e2dc..3c59fe6837 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -24470,8 +24470,38 @@ (define-public rust-futures-join-macro-preview-0.3 @code{try_join!} macro.") (license (list license:expat license:asl2.0)))) +(define-public rust-futures-lite-2 + (package + (name "rust-futures-lite") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "futures-lite" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1flj85i6xm0rjicxixmajrp6rhq8i4bnbzffmrd6h23ln8jshns4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-fastrand" ,rust-fastrand-2) + ("rust-futures-core" ,rust-futures-core-0.3) + ("rust-futures-io" ,rust-futures-io-0.3) + ("rust-memchr" ,rust-memchr-2) + ("rust-parking" ,rust-parking-2) + ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)) + #:cargo-development-inputs (("rust-spin-on" ,rust-spin-on-0.1) + ("rust-waker-fn" ,rust-waker-fn-1)))) + (home-page "https://github.com/smol-rs/futures-lite") + (synopsis "Futures, streams, and async I/O combinators") + (description + "This crate is a subset of @code{futures} that compiles an order of +magnitude faster, fixes minor warts in its API, fills in some obvious gaps, +and removes almost all unsafe code from it.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-futures-lite-1 (package + (inherit rust-futures-lite-2) (name "rust-futures-lite") (version "1.13.0") (source @@ -24481,7 +24511,6 @@ (define-public rust-futures-lite-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1kkbqhaib68nzmys2dc8j9fl2bwzf2s91jfk13lb2q3nwhfdbaa9")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-fastrand" ,rust-fastrand-1) @@ -24492,14 +24521,7 @@ (define-public rust-futures-lite-1 ("rust-pin-project-lite" ,rust-pin-project-lite-0.2) ("rust-waker-fn" ,rust-waker-fn-1)) #:cargo-development-inputs - (("rust-spin-on" ,rust-spin-on-0.1)))) - (home-page "https://github.com/stjepang/futures-lite") - (synopsis "Futures, streams, and async I/O combinators") - (description - "This crate is a subset of @code{futures} that compiles an order of -magnitude faster, fixes minor warts in its API, fills in some obvious gaps, -and removes almost all unsafe code from it.") - (license (list license:asl2.0 license:expat)))) + (("rust-spin-on" ,rust-spin-on-0.1)))))) (define-public rust-futures-lite-0.1 (package