From 49cf88ef30bdce4f36888591898bbf6894bfc666 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 May 2023 16:56:46 +0300 Subject: [PATCH] gnu: Add rust-hashlink-0.8. * gnu/packages/crates-io.scm (rust-hashlink-0.8): New variable. (rust-hashlink-0.7): Inherit from rust-hashlink-0.8. --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ebb8fe23ff..b975606a52 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -27513,8 +27513,34 @@ (define-public rust-hashbrown-0.1 ("rust-rustc-hash" ,rust-rustc-hash-1) ("rust-serde-test" ,rust-serde-test-1)))))) +(define-public rust-hashlink-0.8 + (package + (name "rust-hashlink") + (version "0.8.2") + (source (origin + (method url-fetch) + (uri (crate-uri "hashlink" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ap6ar5jlqq6ln7d9r2j5079mbx0zg8643xacqyjwkqw96ws2q87")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-hashbrown" ,rust-hashbrown-0.13) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-rustc-hash" ,rust-rustc-hash-1) + ("rust-serde-test" ,rust-serde-test-1)))) + (home-page "https://github.com/kyren/hashlink") + (synopsis "HashMap-like containers with user controllable order") + (description "This package provides HashMap-like containers that hold +their key-value pairs in a user controllable order.") + (license (list license:expat license:asl2.0)))) + (define-public rust-hashlink-0.7 (package + (inherit rust-hashlink-0.8) (name "rust-hashlink") (version "0.7.0") (source @@ -27524,19 +27550,13 @@ (define-public rust-hashlink-0.7 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1kzs54xq1g41zph39cfdfchiafij99382zw5fk6zq7xwkh9a6jbj")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.11) ("rust-serde" ,rust-serde-1)) #:cargo-development-inputs - (("rust-serde-test" ,rust-serde-test-1)))) - (home-page "https://crates.io/crates/hashlink") - (synopsis "HashMap-like containers with user controllable order") - (description "This package provides HashMap-like containers that hold -their key-value pairs in a user controllable order.") - (license (list license:expat license:asl2.0)))) + (("rust-serde-test" ,rust-serde-test-1)))))) (define-public rust-hdrhistogram-6 (package