guix-commits
[Top][All Lists]
Advanced

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

71/156: gnu: Add rust-io-close-0.3.


From: guix-commits
Subject: 71/156: gnu: Add rust-io-close-0.3.
Date: Tue, 24 Oct 2023 08:52:31 -0400 (EDT)

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

commit 6828b5e878d7af459d8d8c0e115cf5413f48f16f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 09:10:37 2023 +0300

    gnu: Add rust-io-close-0.3.
    
    * gnu/packages/crates-io.scm (rust-io-close-0.3): New variable.
    
    Change-Id: If02416545b4d3ceee1f3b6d922cc22609d286fca
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a6c247b6ac..5da6d846b6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34776,6 +34776,32 @@ versions < 0.2.")
     ;; Either license can be chosen at the users option.
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-io-close-0.3
+  (package
+    (name "rust-io-close")
+    (version "0.3.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "io-close" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1g4hldfn436rkrx3jlm4az1y5gdmkcixdlhkwy64yx06gx2czbcw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-os-pipe" ,rust-os-pipe-0.9)
+        ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs
+       (("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://gitlab.com/wufz/io-close";)
+    (synopsis "Safely dropping I/O writers such as File and BufWriter")
+    (description
+     "An extension trait for safely dropping I/O writers such as File and
+@code{BufWriter}.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-io-lifetimes-1
   (package
     (name "rust-io-lifetimes")



reply via email to

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