From 9117b3c3971da7c7038b4ac03f24adb22f911fb7 Mon Sep 17 00:00:00 2001 From: Wilko Meyer Date: Mon, 8 Jan 2024 02:52:51 +0100 Subject: [PATCH] gnu: Add rust-lru-0.12. * gnu/packages/crates-io.scm (rust-lru-0.12): New variable. (rust-lru-0.9): Inherit from rust-lru-0.12. Change-Id: I66d64ecb06fb2ed43d75142fa9002dfe60138262 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 50f2897cab..3b14bbac56 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37981,8 +37981,31 @@ image together with its neighboring pixels.") ("rust-rayon" ,rust-rayon-1) ("rust-time" ,rust-time-0.2)))))) +(define-public rust-lru-0.12 + (package + (name "rust-lru") + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "lru" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1myillpwqfcins062g28jvj48cxw8818zcx08ydzsl6misxfx519")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.14)) + #:cargo-development-inputs + (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1) + ("rust-stats-alloc" ,rust-stats-alloc-0.1)))) + (home-page "https://github.com/jeromefroe/lru-rs") + (synopsis "LRU cache implementation") + (description "This package provides a LRU cache implementation.") + (license license:expat))) + (define-public rust-lru-0.9 (package + (inherit rust-lru-0.12) (name "rust-lru") (version "0.9.0") (source @@ -37992,16 +38015,11 @@ image together with its neighboring pixels.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "05yz4qqx7wxbhgxs5hx22j13g8mv9z3gn2pkspykyq48winx9rvi")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.13)) #:cargo-development-inputs (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1) - ("rust-stats-alloc" ,rust-stats-alloc-0.1)))) - (home-page "https://github.com/jeromefroe/lru-rs") - (synopsis "LRU cache") - (description "This package provides a LRU cache implementation.") - (license license:expat))) + ("rust-stats-alloc" ,rust-stats-alloc-0.1)))))) (define-public rust-lru-0.7 (package