[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/44: gnu: Add rust-async-io-2 and rust-async-net-2.
From: |
guix-commits |
Subject: |
29/44: gnu: Add rust-async-io-2 and rust-async-net-2. |
Date: |
Mon, 12 Feb 2024 07:40:42 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit e6a54ffaa0db5aecbc8a6c590d959ebb7f9d7239
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Tue Jan 30 16:25:14 2024 +0100
gnu: Add rust-async-io-2 and rust-async-net-2.
* gnu/packages/crates-io.scm (rust-async-io-2, rust-async-net-2): Add
variables.
(rust-async-io-1): Inherit from rust-async-io-2.
(rust-async-net-1): Inherit from rust-async-net-2.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: I827ed85d4e78cbbf891a4bfac9a5c1c7220b4bce
---
gnu/packages/crates-io.scm | 83 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 68 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 009c62aaf9..d65f5104ae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4173,8 +4173,51 @@ AsyncSeek if the inner type does.")
@code{async-executor} and @code{async-io}.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-async-io-2
+ (package
+ (name "rust-async-io")
+ (version "2.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "async-io" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0rggn074kbqxxajci1aq14b17gp75rw9l6rpbazcv9q0bc6ap5wg"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-async-lock" ,rust-async-lock-3)
+ ("rust-cfg-if" ,rust-cfg-if-1)
+ ("rust-concurrent-queue" ,rust-concurrent-queue-2)
+ ("rust-futures-io" ,rust-futures-io-0.3)
+ ("rust-futures-lite" ,rust-futures-lite-2)
+ ("rust-parking" ,rust-parking-2)
+ ("rust-polling" ,rust-polling-3)
+ ("rust-rustix" ,rust-rustix-0.38)
+ ("rust-slab" ,rust-slab-0.4)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-windows-sys" ,rust-windows-sys-0.52))
+ #:cargo-development-inputs (("rust-async-channel" ,rust-async-channel-2)
+ ("rust-async-net" ,rust-async-net-2)
+ ("rust-blocking" ,rust-blocking-1)
+ ("rust-criterion" ,rust-criterion-0.4)
+ ("rust-getrandom" ,rust-getrandom-0.2)
+ ("rust-inotify" ,rust-inotify-0.10)
+ ("rust-signal-hook" ,rust-signal-hook-0.3)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-timerfd" ,rust-timerfd-1)
+ ("rust-uds-windows" ,rust-uds-windows-1))))
+ (home-page "https://github.com/smol-rs/async-io")
+ (synopsis "Async I/O and timers")
+ (description
+ "This crate provides two tools: Async, an adapter for standard
+networking types (and many other types) to use in async programs, and
+Timer, a future that expires at a point in time.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-async-io-1
(package
+ (inherit rust-async-io-2)
(name "rust-async-io")
(version "1.13.0")
(source
@@ -4184,7 +4227,6 @@ AsyncSeek if the inner type does.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1byj7lpw0ahk6k63sbc9859v68f28hpaab41dxsjj1ggjdfv9i8g"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-async-lock" ,rust-async-lock-2)
@@ -4209,14 +4251,7 @@ AsyncSeek if the inner type does.")
("rust-signal-hook" ,rust-signal-hook-0.3)
("rust-tempfile" ,rust-tempfile-3)
("rust-timerfd" ,rust-timerfd-1)
- ("rust-uds-windows" ,rust-uds-windows-1))))
- (home-page "https://github.com/stjepang/async-io")
- (synopsis "Async I/O and timers")
- (description
- "This crate provides two tools: Async, an adapter for standard networking
-types (and many other types) to use in async programs, and Timer, a future
-that expires at a point in time.")
- (license (list license:asl2.0 license:expat))))
+ ("rust-uds-windows" ,rust-uds-windows-1))))))
(define-public rust-async-lock-3
(package
@@ -4376,8 +4411,31 @@ primitives:
@end itemize")
(license (list license:asl2.0 license:expat))))
+(define-public rust-async-net-2
+ (package
+ (name "rust-async-net")
+ (version "2.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "async-net" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1xyc5a5vcp3a7h1q2lbfh79wz8136dig4q4x6g4w2ws8ml7h0j5r"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-async-io" ,rust-async-io-2)
+ ("rust-blocking" ,rust-blocking-1)
+ ("rust-futures-lite" ,rust-futures-lite-2))))
+ (home-page "https://github.com/smol-rs/async-net")
+ (synopsis "Async networking primitives for TCP/UDP/Unix communication")
+ (description "This package provides async networking primitives for
+TCP/UDP/Unix communication.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-async-net-1
(package
+ (inherit rust-async-net-2)
(name "rust-async-net")
(version "1.5.0")
(source
@@ -4393,12 +4451,7 @@ primitives:
(("rust-async-io" ,rust-async-io-1)
("rust-blocking" ,rust-blocking-1)
("rust-fastrand" ,rust-fastrand-1)
- ("rust-futures-lite" ,rust-futures-lite-1))))
- (home-page "https://github.com/stjepang/async-net")
- (synopsis "Async networking primitives for TCP/UDP/Unix communication")
- (description
- "Async networking primitives for TCP/UDP/Unix communication")
- (license (list license:asl2.0 license:expat))))
+ ("rust-futures-lite" ,rust-futures-lite-1))))))
(define-public rust-async-once-cell-0.5
(package
- 16/44: gnu: Add rust-async-pidfd-0.1., (continued)
- 16/44: gnu: Add rust-async-pidfd-0.1., guix-commits, 2024/02/12
- 30/44: gnu: Add rust-ordered-stream-0.2., guix-commits, 2024/02/12
- 34/44: gnu: rust-async-process-1: Update to 1.8.1., guix-commits, 2024/02/12
- 44/44: gnu: i3status-rust: Remove some inputs., guix-commits, 2024/02/12
- 43/44: gnu: i3status-rust: Substitute full paths of commands., guix-commits, 2024/02/12
- 02/44: gnu: Add rust-backon-0.4., guix-commits, 2024/02/12
- 08/44: gnu: Add rust-from-variants-0.6., guix-commits, 2024/02/12
- 15/44: gnu: rust-swayipc-types-1: Update to 1.3.1., guix-commits, 2024/02/12
- 21/44: gnu: Add rust-wayrs-proto-parser-2, guix-commits, 2024/02/12
- 27/44: gnu: Add rust-async-channel-2., guix-commits, 2024/02/12
- 29/44: gnu: Add rust-async-io-2 and rust-async-net-2.,
guix-commits <=
- 37/44: gnu: Add rust-pandoc-0.8., guix-commits, 2024/02/12
- 39/44: gnu: rust-portable-atomic-util-0.1: Update to 0.1.5., guix-commits, 2024/02/12
- 26/44: gnu: Add rust-event-listener-strategy-0.4., guix-commits, 2024/02/12
- 24/44: gnu: Add rust-wayrs-protocols-0.13., guix-commits, 2024/02/12
- 03/44: gnu: Add rust-calibright-0.1., guix-commits, 2024/02/12
- 07/44: gnu: Add rust-from-variants-impl-0.6., guix-commits, 2024/02/12
- 09/44: gnu: Add rust-notmuch-0.8., guix-commits, 2024/02/12
- 10/44: gnu: rust-gethostname-0.2: Update to 0.2.3., guix-commits, 2024/02/12
- 12/44: gnu: Add rust-libsensors-sys-0.2., guix-commits, 2024/02/12
- 13/44: gnu: Add rust-sensors-0.2., guix-commits, 2024/02/12