Subject: [PATCH 081/156] gnu: Add rust-metrics-util-0.15.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:58 +0100

* gnu/packages/crates-io.scm (rust-metrics-util-0.15): New variable.

Change-Id: I76139cc5b3fdada2eac4697a79936eef219e6fef
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 71dcf8bde34..3319fe16914 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41265,6 +41265,41 @@ (define-public rust-twox-hash-1
 and XXH3 algorithms.")
     (license license:expat)))
 
+(define-public rust-metrics-util-0.15
+  (package
+    (name "rust-metrics-util")
+    (version "0.15.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "metrics-util" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0glpkmrj7zkg9b290x6qxf93kmd9b4b4sbkk1fs19l8y95pfvqjd"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+           (substitute* "Cargo.toml"
+             (("=0\\.13\\.1") "^0.13.2"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
+                       ("rust-aho-corasick" ,rust-aho-corasick-1)
+                       ("rust-crossbeam-epoch" ,rust-crossbeam-epoch-0.9)
+                       ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.8)
+                       ("rust-hashbrown" ,rust-hashbrown-0.13)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-metrics" ,rust-metrics-0.21)
+                       ("rust-num-cpus" ,rust-num-cpus-1)
+                       ("rust-ordered-float" ,rust-ordered-float-3)
+                       ("rust-quanta" ,rust-quanta-0.11)
+                       ("rust-radix-trie" ,rust-radix-trie-0.2)
+                       ("rust-sketches-ddsketch" ,rust-sketches-ddsketch-0.2))))
+    (home-page "https://github.com/metrics-rs/metrics")
+    (synopsis "Helper types/functions used by the metrics ecosystem.")
+    (description "Helper types/functions used by the metrics ecosystem.")
+    (license license:expat)))
+
 (define-public rust-metrics-macros-0.2
   (package
     (name "rust-metrics-macros")
-- 
2.41.0