Subject: [PATCH 099/147] gnu: Add rust-io-extras-0.18.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:04:51 +0200

* gnu/packages/crates-io.scm (rust-io-extras-0.18): New variable.

Change-Id: I06b153d9127eaad24db2461d527e096a39b54400
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c7ce1ad2a7..df5d634191 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31658,6 +31658,33 @@ (define-public rust-io-close-0.3
 @code{BufWriter}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-io-extras-0.18
+  (package
+    (name "rust-io-extras")
+    (version "0.18.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "io-extras" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1vfi3dm8667naalicaaq1lqp8pvnjp805x5903k2k2hfp4zyf0f3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-async-std" ,rust-async-std-1)
+                       ("rust-io-lifetimes" ,rust-io-lifetimes-2)
+                       ("rust-mio" ,rust-mio-0.8)
+                       ("rust-os-pipe" ,rust-os-pipe-1)
+                       ("rust-socket2" ,rust-socket2-0.4)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (home-page "https://github.com/sunfishcode/io-extras")
+    (synopsis "Miscellaneous I/O utilities")
+    (description "This package provides a library with a few miscellaneous
+utilities for I/O.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-io-lifetimes-2
   (package
     (name "rust-io-lifetimes")
-- 
2.41.0