From b39b70df89972d125a5208c7aa07e4c0fa261696 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 28 Mar 2024 11:07:35 +0200 Subject: [PATCH] gnu: Add rust-atomic-take-1. * gnu/packages/crates-io.scm (rust-atomic-take-1): New variable. Change-Id: I4b817b340841a016cf759bfb86a2eaedd1f2c37f --- gnu/packages/crates-io.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6ce368bb9d..dfcf5fcae2 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -5882,6 +5882,25 @@ they're not available.") they're not available.") (license (list license:expat license:asl2.0)))) +(define-public rust-atomic-take-1 + (package + (name "rust-atomic-take") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "atomic-take" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1hzvfqiy0ixsawkh7ci9visn95kx2j6yvnqxz536x5wpzranpax8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs (("rust-tokio" ,rust-tokio-1)))) + (home-page "https://github.com/Darksonn/atomic-take") + (synopsis "Atomically take a value out of a container once") + (description "Atomically take a value out of a container once.") + (license license:expat))) + (define-public rust-atomic-write-file-0.1 (package (name "rust-atomic-write-file")