summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 11:48:05 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:18 +0200
commit9cec0ef9c53691d7b18c15401e3ef4bcdb3b7266 (patch)
tree791279f3eeafd871191a05819d259d3e27af403f
parent1f6e1808c4cb290622954f4c80a5675fb82be913 (diff)
gnu: Add rust-polling-3.
* gnu/packages/crates-io.scm (rust-polling-3): New variable. (rust-polling-2): Inherit from rust-polling-3. Change-Id: I0b74f1e5751ee38ad8f81fdf2d05dd973e2539e1
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 32 insertions, 4 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 295daac062..6b2ebd876a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51595,8 +51595,39 @@ applications.")
library.")
(license license:expat)))
+(define-public rust-polling-3
+ (package
+ (name "rust-polling")
+ (version "3.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "polling" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "17hwk4g8qbdsyr0kqjddhw0l2v64pxhakkdlaqbc24xk99iglqyg"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-concurrent-queue" ,rust-concurrent-queue-2)
+ ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+ ("rust-rustix" ,rust-rustix-0.38)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-windows-sys" ,rust-windows-sys-0.52))
+ #:cargo-development-inputs (("rust-easy-parallel" ,rust-easy-parallel-3)
+ ("rust-fastrand" ,rust-fastrand-2)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-signal-hook" ,rust-signal-hook-0.3))))
+ (home-page "https://github.com/smol-rs/polling")
+ (synopsis "Portable interface to epoll, kqueue, event ports, and IOCP")
+ (description
+ "This package provides a portable interface to @code{epoll},
+@code{kqueue}, @code{event ports}, and @code{IOCP}.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-polling-2
(package
+ (inherit rust-polling-3)
(name "rust-polling")
(version "2.8.0")
(source
@@ -51606,7 +51637,6 @@ library.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1kixxfq1af1k7gkmmk9yv4j2krpp4fji2r8j4cz6p6d7ihz34bab"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-autocfg" ,rust-autocfg-1)
@@ -51620,12 +51650,10 @@ library.")
#:cargo-development-inputs
(("rust-easy-parallel" ,rust-easy-parallel-3)
("rust-fastrand" ,rust-fastrand-1))))
- (home-page "https://github.com/smol-rs/polling")
(synopsis "Portable interface to epoll, kqueue, event ports, and wepoll")
(description
"This package provides a portable interface to @code{epoll},
-@code{kqueue}, @code{event ports}, and @code{wepoll}.")
- (license (list license:asl2.0 license:expat))))
+@code{kqueue}, @code{event ports}, and @code{wepoll}.")))
(define-public rust-pollster-macro-0.1
(package