guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/84: gnu: Add rust-async-process-2.


From: guix-commits
Subject: 09/84: gnu: Add rust-async-process-2.
Date: Mon, 11 Nov 2024 05:07:54 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 833c2dc1c7dfc18acc08e74843c2682a50501226
Author: Giacomo Leidi <goodoldpaul@autistici.org>
AuthorDate: Wed Nov 6 21:42:55 2024 +0100

    gnu: Add rust-async-process-2.
    
    * gnu/packages/crates-io.scm (rust-async-process-2): New variable.
    (rust-async-process-1): Inherit from rust-async-process-2.
    
    Change-Id: Ie1366aabfde152abc487f1eff2a38573ffcac307
---
 gnu/packages/crates-io.scm | 49 ++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 41 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b2b60576bf..19abb35a44 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5581,17 +5581,17 @@ asynchronously (via the AsyncPidFd type).")
 delivered in order of priority.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-async-process-1
+(define-public rust-async-process-2
   (package
     (name "rust-async-process")
-    (version "1.8.1")
+    (version "2.3.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "async-process" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "126s968lvhg9rlwsnxp7wfzkfn7rl87p0dlvqqlibn081ax3hr7a"))))
+        (base32 "1fr6cpqdw7hrmzns1983lgx86cg8vyz7nlrn0h0125iqq8fmy9b3"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
@@ -5601,15 +5601,17 @@ delivered in order of priority.")
          "--skip=signal_reported_right"
          "--skip=stdin_works"
          "--skip=test_spawn_multiple_with_stdio")
-       #:cargo-inputs (("rust-async-io" ,rust-async-io-1)
-                       ("rust-async-lock" ,rust-async-lock-2)
+       #: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-async-task" ,rust-async-task-4)
                        ("rust-blocking" ,rust-blocking-1)
                        ("rust-cfg-if" ,rust-cfg-if-1)
-                       ("rust-event-listener" ,rust-event-listener-3)
-                       ("rust-futures-lite" ,rust-futures-lite-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.48))
+                       ("rust-tracing" ,rust-tracing-0.1))
        #: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")
@@ -5623,6 +5625,37 @@ 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
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "async-process" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "126s968lvhg9rlwsnxp7wfzkfn7rl87p0dlvqqlibn081ax3hr7a"))))
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--"
+         "--skip=set_current_dir_works" ; assertion failed: p.is_ok()
+         ;; No such file or directory
+         "--skip=signal_reported_right"
+         "--skip=stdin_works"
+         "--skip=test_spawn_multiple_with_stdio")
+       #:cargo-inputs (("rust-async-io" ,rust-async-io-1)
+                       ("rust-async-lock" ,rust-async-lock-2)
+                       ("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-3)
+                       ("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))))))
+
 (define-public rust-async-ready-3
   (package
     (name "rust-async-ready")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]