From 6aad79c94539cfb8f13ff51029fac894d6fd3597 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 27 Dec 2023 09:07:52 +0200 Subject: [PATCH] gnu: Add rust-buffer-redux-1. * gnu/packages/crates-io.scm (rust-buffer-redux-1): New variable. Change-Id: I2735de17a17bce167a26f80f464e76e7a0ac3d62 --- gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b41423b6f9..a9a27dd217 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10307,6 +10307,28 @@ with data in place, which avoids another copy.") ("rust-flate2" ,rust-flate2-1) ("rust-libc" ,rust-libc-0.2)))))) +(define-public rust-buffer-redux-1 + (package + (name "rust-buffer-redux") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "buffer-redux" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j90lnf4iz50px57xpxc6bx8hnmb6fyjm50nq6m8qn892nh6x26j")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-memchr" ,rust-memchr-2) + ("rust-safemem" ,rust-safemem-0.3) + ("rust-slice-deque" ,rust-slice-deque-0.3)))) + (home-page "https://github.com/dignifiedquire/buffer-redux") + (synopsis "Replacements for buffered I/O in `std::io` with extra features") + (description "This crate provides a drop-in replacements for buffered I/O in +@code{std::io} with extra features.") + (license (list license:expat license:asl2.0)))) + (define-public rust-buffering-0.4 (package (name "rust-buffering")