[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/27: gnu: Add rust-cache-padded-1.
From: |
guix-commits |
Subject: |
21/27: gnu: Add rust-cache-padded-1. |
Date: |
Sun, 3 Jan 2021 16:08:57 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit 28ba48959cb7ad384d958cf606d29a54f0bcdfd9
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Dec 20 13:09:17 2020 +0100
gnu: Add rust-cache-padded-1.
* gnu/packages/crates-io.scm (rust-cache-padded-1): New variable.
---
gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dedfcfe..d238dbf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3716,6 +3716,29 @@ exposed as Reader/Writer streams.")
"The ChaCha family of stream ciphers.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-cache-padded-1
+ (package
+ (name "rust-cache-padded")
+ (version "1.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cache-padded" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1fkdwv9vjazm6fs3s5v56mm4carwswdmw8fcwm9ygrcvihcya6k3"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/stjepang/cache-padded")
+ (synopsis "Prevent once piece of data invalidating other cached data")
+ (description
+ "In concurrent programming, sometimes it is desirable to make sure
+commonly accessed shared data is not all placed into the same cache line.
+Updating an atomic value invalides the whole cache line it belongs to, which
+makes the next access to the same cache line slower for other CPU cores. Use
+CachePadded to ensure updating one piece of data doesn't invalidate other
+cached data.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-cachedir-0.1
(package
(name "rust-cachedir")
- 18/27: gnu: Add rust-fastrand-1., (continued)
- 18/27: gnu: Add rust-fastrand-1., guix-commits, 2021/01/03
- 19/27: gnu: Add rust-spin-on-0.1., guix-commits, 2021/01/03
- 25/27: gnu: Add rust-async-channel-1., guix-commits, 2021/01/03
- 17/27: gnu: Add rust-parking-2., guix-commits, 2021/01/03
- 23/27: gnu: Add rust-event-listener-2., guix-commits, 2021/01/03
- 24/27: gnu: Add rust-blocking-0.6., guix-commits, 2021/01/03
- 26/27: gnu: rust-once-cell: Improve description., guix-commits, 2021/01/03
- 27/27: gnu: rust-tokio-0.3: Update to 0.3.6., guix-commits, 2021/01/03
- 12/27: gnu: Add rust-async-attributes-1 and rust-async-std-0.99., guix-commits, 2021/01/03
- 22/27: gnu: Add rust-concurrent-queue-1., guix-commits, 2021/01/03
- 21/27: gnu: Add rust-cache-padded-1.,
guix-commits <=