guix-commits
[Top][All Lists]
Advanced

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

25/44: gnu: Add rust-event-listener-4.


From: guix-commits
Subject: 25/44: gnu: Add rust-event-listener-4.
Date: Mon, 12 Feb 2024 07:40:41 -0500 (EST)

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

commit 37c7762f0d66f5fe3ca9bbe85d39d55dbea06f0a
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Tue Jan 30 16:25:10 2024 +0100

    gnu: Add rust-event-listener-4.
    
    * gnu/packages/crates-io.scm (rust-event-listener-4): Add variable.
    (rust-event-listener-2): Inherit from rust-event-listener-4.
    
    Change-Id: I23ebc60b21fb33e992832553dd9817672b4fb920
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 39 ++++++++++++++++++++++++++++++++-------
 1 file changed, 32 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b0429d9e91..f4155f26f8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21939,23 +21939,31 @@ they follow.  Etcetera, on the other hand, gives you 
the choice.")
     (description "This package provides evdev interface for Linux.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-event-listener-2
+(define-public rust-event-listener-4
   (package
     (name "rust-event-listener")
-    (version "2.5.3")
+    (version "4.0.3")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "event-listener" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1q4w3pndc518crld6zsqvvpy9lkzwahp2zgza9kbzmmqh9gif1h2"))))
+        (base32 "0vk4smw1vf871vi76af1zn7w69jg3zmpjddpby2qq91bkg21bck7"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-development-inputs
-       (("rust-futures" ,rust-futures-0.3)
-        ("rust-waker-fn" ,rust-waker-fn-1))))
-    (home-page "https://github.com/stjepang/event-listener";)
+     `(#:cargo-inputs
+       (("rust-concurrent-queue" ,rust-concurrent-queue-2)
+        ("rust-parking" ,rust-parking-2)
+        ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+        ("rust-portable-atomic" ,rust-portable-atomic-1)
+        ("rust-portable-atomic-util" ,rust-portable-atomic-util-0.1))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.5)
+        ("rust-futures-lite" ,rust-futures-lite-2)
+        ("rust-waker-fn" ,rust-waker-fn-1)
+        ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
+    (home-page "https://github.com/smol-rs/event-listener";)
     (synopsis "Notify async tasks or threads")
     (description
      "This is a synchronization primitive similar to @code{eventcounts}.
@@ -21963,6 +21971,23 @@ You can use this crate to turn non-blocking data 
structures into async or
 blocking data structures.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-event-listener-2
+  (package
+    (inherit rust-event-listener-4)
+    (name "rust-event-listener")
+    (version "2.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "event-listener" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q4w3pndc518crld6zsqvvpy9lkzwahp2zgza9kbzmmqh9gif1h2"))))
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-futures" ,rust-futures-0.3)
+        ("rust-waker-fn" ,rust-waker-fn-1))))))
+
 (define-public rust-executable-path-1
   (package
     (name "rust-executable-path")



reply via email to

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