From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aHegEf8/DGaeGgEAqHPOHw:P1 (envelope-from ) for ; Tue, 02 Apr 2024 19:27:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aHegEf8/DGaeGgEAqHPOHw (envelope-from ) for ; Tue, 02 Apr 2024 19:27:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=EqznsvxX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712078847; a=rsa-sha256; cv=none; b=StpsLFY/556pydKH1bUXMTIrNfH3ptYLSrp1shHd0AKihT1PMW6IwkTq9mNksLa5t+F9K+ j5Dv2wRBZSUy9HQEOBtR1n1C9oMegDTRN7qdoXHz8Qz658/XBPtlWg8yY8NgJ78fGWJ79N tdF8CPT5Z2LAaZ1uwWggep9JdDxuPmNtSJpK2IOOd1z8Blx48OrQan9WOhPgE/XcC+bXxl vsbgeb6gzlbB+HVFZScWOguNiAR5m9kJtA4Ptjhz8//k6m/Ag7ScNik98bY2c5tDBfP9re mTzJfA4I5rjLrAzRQHIjlK4s1MJg8GW5YdPp4AtKZal3MuuWrJTw+N/OtreK1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=EqznsvxX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712078847; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pvnJf0aJ+ekS/wZ+mAwZHjPA1JVXvN+2eCjVhp4Meo8=; b=VKAuTXUbBYhC+fMk3GXGcnZC5QgAGvNSLWyKLdMWC7D50lAeHopgiO4xTBoTFNI8zta8Gr 87DTL36hAmQAftt4gr2ZlQnAYB8WxTm06i1ZzEY0ZBSj9xZm6jR4g0XG7alyJjcwUMiffd KfsrCwIaJO6Z6n/AnAF/A6eoHT9a3Lpum67/i6oqQvNwg6Kzsedh1EdiBGarUJmH3rm7k+ zgVtk8e2gIsQRb25lEg/BoxECPV5bejlT4HCHqvk6PHY1FgndxlAQVyQMQK0tRYULIsUD5 VML2SNA9mgDr6Ksxmf7aW+x6kSGe/GHbO4RcFBHJrWbJiws8o+EonptvIVbFug== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 16DA53545B for ; Tue, 2 Apr 2024 19:27:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrgjz-0000ba-PH; Tue, 02 Apr 2024 12:12:04 -0400 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 1rrgjx-0000Z2-1h for guix-patches@gnu.org; Tue, 02 Apr 2024 12:12:01 -0400 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 1rrgjw-00085R-Pw for guix-patches@gnu.org; Tue, 02 Apr 2024 12:12:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrgk0-0007Ph-Iy; Tue, 02 Apr 2024 12:12:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70146] [PATCH 130/147] gnu: Add rust-async-process-2. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 02 Apr 2024 16:12:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70146 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70146@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 70146-submit@debbugs.gnu.org id=B70146.171207428428163 (code B ref 70146); Tue, 02 Apr 2024 16:12:04 +0000 Received: (at 70146) by debbugs.gnu.org; 2 Apr 2024 16:11:24 +0000 Received: from localhost ([127.0.0.1]:55711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrgjJ-0007K3-M0 for submit@debbugs.gnu.org; Tue, 02 Apr 2024 12:11:23 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:51293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrggj-0006jG-Rx for 70146@debbugs.gnu.org; Tue, 02 Apr 2024 12:08:43 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-41569f1896dso12720545e9.2 for <70146@debbugs.gnu.org>; Tue, 02 Apr 2024 09:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1712074112; x=1712678912; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pvnJf0aJ+ekS/wZ+mAwZHjPA1JVXvN+2eCjVhp4Meo8=; b=EqznsvxXWc90FMwHXPDHYgaWDIkcTyAOOYaoFbAemjAiJuLpr5IF11a8XHCMRWIgRm wWh9n47wAkcYgsVQpA7ojz6A0Bmyc5sEyjHjz/E/Ubk3PhAa+KYKC+gT15UdZqyQvYzs ee7idZ0E8FQ5sLrBULJAZ3VsVDpQWc+0cxPXCq1Y2YfKI/H0YZHrN/CzQi+uMj20zK/I 4cjEfnDH922RFL5yC0wXdYn7//butrzaLAJeGts1fDNGtJwslsOiIxIB7F7RAY2QfGTp hfdrfgOD3fNPyWOd4WYhq/GWoGDuKZ5Mwt1NBbI8qtOX9NXC3n8oCn4gCgOFNMyqaafQ TCkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712074112; x=1712678912; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pvnJf0aJ+ekS/wZ+mAwZHjPA1JVXvN+2eCjVhp4Meo8=; b=XhHOefsJ5TNgrAeTdHt1GVlO97WTarX3nqfjVOD1vuyqy8A7xV6yo5XllYHR7pUU0u KKWR7aZJqdDo9BhpZCulQJeWj0eOP503aAQ7Vx39BEfw6Z3qRxzsLrWVTdVUCSR0TOFs J9AmQHqWSC/lzL22xwV9GHzaPpU/ZGrarEYYd2Zz+v28Pmy88W22Tqyw/dltZmbUYDs5 YwjainjWyHTkbjcuhOVw700KguLU90OF2N+K+VwNKn0xWu4aDzVXchQFFoqBToLh0xQH kQfpky1MwKXGVj2MmW8H2Tmryo309xXVpVuqragiVWtotOpacfpE1/p3tya5WlVX6ayL pODg== X-Gm-Message-State: AOJu0YzqIMtxYR5dOPOHopk8Pfj94qj/oh2geS/wdOovEJXlJ4Ed8UN7 9bfDfwG13WJaqo3aZ/kkKzZUuePpNitq1ZqygE/Vq7znmPd5RTGV6ZfbwJw+DdbWvfPFylFEnn6 z X-Google-Smtp-Source: AGHT+IFW4wM0nsv10jWr0D8bO+CZpUq1Pr4bhAOMsxDz8jnIuPrbUyZ/JMJtjFGEEU7I5AgEQhaiIw== X-Received: by 2002:a05:600c:1793:b0:415:6ea0:fb26 with SMTP id x19-20020a05600c179300b004156ea0fb26mr2477197wmo.20.1712074112127; Tue, 02 Apr 2024 09:08:32 -0700 (PDT) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id bh8-20020a05600005c800b0033e7a102cfesm8261928wrb.64.2024.04.02.09.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:08:31 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ Date: Tue, 2 Apr 2024 18:05:22 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 4.15 X-Migadu-Queue-Id: 16DA53545B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 4.15 X-TUID: npBkmhf+SJFA * gnu/packages/crates-io.scm (rust-async-process-2): New variable. (rust-async-process-1): Inherit from rust-async-process-2. Change-Id: I87e01f19b2c39023ecb055f82de53144e08260a3 --- gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9f1d311f6d..f75c012ddc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -4722,8 +4722,45 @@ (define-public rust-async-pidfd-0.1 asynchronously (via the AsyncPidFd type).") (license (list license:expat license:asl2.0)))) +(define-public rust-async-process-2 + (package + (name "rust-async-process") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "async-process" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j0cfac9p3kq5dclfzlz6jv5l29kwflh9nvr3ivmdg8ih3v3q7j5")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-async-channel" ,rust-async-channel-2) + ("rust-async-io" ,rust-async-io-2) + ("rust-async-lock" ,rust-async-lock-3) + ("rust-async-signal" ,rust-async-signal-0.2) + ("rust-blocking" ,rust-blocking-1) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-event-listener" ,rust-event-listener-5) + ("rust-futures-lite" ,rust-futures-lite-2) + ("rust-rustix" ,rust-rustix-0.38) + ("rust-windows-sys" ,rust-windows-sys-0.52)))) + (home-page "https://github.com/smol-rs/async-process") + (synopsis "Async interface for working with processes") + (description + "This crate is an async version of @code{std::process}. A background +thread named @code{async-process} is lazily created on first use, which waits +for spawned child processes to exit and then calls the @code{wait()} syscall +to clean up the ``zombie'' processes. + +This is unlike the process API in the standard library, where dropping +a running Child leaks its resources.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-async-process-1 (package + (inherit rust-async-process-2) (name "rust-async-process") (version "1.8.1") (source @@ -4733,7 +4770,6 @@ (define-public rust-async-process-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "126s968lvhg9rlwsnxp7wfzkfn7rl87p0dlvqqlibn081ax3hr7a")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags '("--release" "--" @@ -4751,18 +4787,7 @@ (define-public rust-async-process-1 ("rust-futures-lite" ,rust-futures-lite-1) ("rust-rustix" ,rust-rustix-0.38) ("rust-windows-sys" ,rust-windows-sys-0.48)) - #:cargo-development-inputs (("rust-async-io" ,rust-async-io-1)))) - (home-page "https://github.com/smol-rs/async-process") - (synopsis "Async interface for working with processes") - (description - "This crate is an async version of @code{std::process}. A background -thread named @code{async-process} is lazily created on first use, which waits -for spawned child processes to exit and then calls the @code{wait()} syscall -to clean up the ``zombie'' processes. - -This is unlike the process API in the standard library, where dropping -a running Child leaks its resources.") - (license (list license:asl2.0 license:expat)))) + #:cargo-development-inputs (("rust-async-io" ,rust-async-io-1)))))) (define-public rust-async-ready-3 (package -- 2.41.0