summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-30 22:25:37 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:21:34 +0200
commit7b68935169fc918ece6f5e2ba2461fe1f549c427 (patch)
tree444a3f5ef2d6419d301bf0c3675c1fcb7038f5d4
parentfea9192330b59f5b740b65207b961f2ccb78dda5 (diff)
gnu: Add rust-associative-cache-2.
* gnu/packages/crates-io.scm (rust-associative-cache-2): New variable. (rust-associative-cache-1): Inherit from rust-associative-cache-2. Change-Id: I810df11202bd9542ddb57d4ff43871b3e69bb846
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 23 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c7c6c9090b..62786b2553 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4775,8 +4775,30 @@ inspired by Catch2.")
(description "This package provides procedural macros for assert2.")
(license license:bsd-2)))
+(define-public rust-associative-cache-2
+ (package
+ (name "rust-associative-cache")
+ (version "2.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "associative-cache" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1b9bgf19c27sdch6c4x2qyf34i1cl8f328knv1yk1irbg9vcv4xr"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-rand" ,rust-rand-0.8))))
+ (home-page "https://github.com/fitzgen/associative-cache")
+ (synopsis "Associative cache with fixed-size capacity")
+ (description
+ "This package provides a generic N-way associative cache with fixed-size
+capacity and random or least recently used (LRU) replacement.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-associative-cache-1
(package
+ (inherit rust-associative-cache-2)
(name "rust-associative-cache")
(version "1.0.1")
(source (origin
@@ -4786,17 +4808,10 @@ inspired by Catch2.")
(sha256
(base32
"05lg0mwpqfqb9zh958x0358x1k5ngmmmbzjnp0imrd8vzhrn40a6"))))
- (build-system cargo-build-system)
(arguments
;; 2 doctests fail because rand is not declared
`(#:tests? #false
- #:cargo-inputs (("rust-rand" ,rust-rand-0.7))))
- (home-page "https://github.com/fitzgen/associative-cache")
- (synopsis "Associative cache with fixed-size capacity")
- (description
- "This package provides a generic N-way associative cache with fixed-size
-capacity and random or least recently used (LRU) replacement.")
- (license (list license:expat license:asl2.0))))
+ #:cargo-inputs (("rust-rand" ,rust-rand-0.7))))))
(define-public rust-async-attributes-1
(package