Subject: [bug#68312] [PATCH 082/156] gnu: Add rust-metrics-exporter-prometheus-0.12.

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

* gnu/packages/crates-io.scm (rust-metrics-exporter-prometheus-0.12): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3319fe16914..e19f3d04385 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41300,6 +41300,38 @@ (define-public rust-metrics-util-0.15
     (description "Helper types/functions used by the metrics ecosystem.")
     (license license:expat)))
 
+(define-public rust-metrics-exporter-prometheus-0.12
+  (package
+    (name "rust-metrics-exporter-prometheus")
+    (version "0.12.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "metrics-exporter-prometheus" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0l19s21jfmwm72cxfjq35xb79a5wi4fv7c1p993dnqj8gk7afkqx"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-base64" ,rust-base64-0.21)
+                       ("rust-hyper" ,rust-hyper-0.14)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-ipnet" ,rust-ipnet-2)
+                       ("rust-metrics" ,rust-metrics-0.21)
+                       ("rust-metrics-util" ,rust-metrics-util-0.15)
+                       ("rust-quanta" ,rust-quanta-0.11)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-tracing" ,rust-tracing-0.1))))
+    (home-page "https://github.com/metrics-rs/metrics")
+    (synopsis
+     "A metrics-compatible exporter for sending metrics to Prometheus.")
+    (description
+     "This package provides a metrics-compatible exporter for sending metrics to
+Prometheus.")
+    (license license:expat)))
+
 (define-public rust-metrics-macros-0.2
   (package
     (name "rust-metrics-macros")
-- 
2.41.0