From 105363cb3eb19b96a5be79f322fa1f130307920b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 24 Oct 2023 09:10:37 +0300 Subject: [PATCH] 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 9061a8a4f1..92a3e4cfef 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -34791,6 +34791,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")