Subject: [PATCH 19/81] gnu: Add rust-opentelemetry-api-0.18.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:24 +0200

* gnu/packages/crates-io.scm (rust-opentelemetry-api-0.18): Add
variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7d1d375d61..d0240ef937 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50905,6 +50905,37 @@ (define-public rust-opentelemetry-0.21
 framework.")
     (license license:asl2.0)))
 
+(define-public rust-opentelemetry-api-0.18
+  (package
+    (name "rust-opentelemetry-api")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "opentelemetry_api" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "08hcfvvjnqgw2i86pks6rhmxnac9jyafx543g8y83k3s3vi9cky2"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-fnv-1
+                           rust-futures-channel-0.3
+                           rust-futures-util-0.3
+                           rust-indexmap-1
+                           rust-js-sys-0.3
+                           rust-once-cell-1
+                           rust-pin-project-lite-0.2
+                           rust-thiserror-1
+                           rust-tokio-stream-0.1)))
+    (home-page "https://github.com/open-telemetry/opentelemetry-rust")
+    (synopsis "OpenTelemetry APIs")
+    (description
+     "This package provides APIs for @code{OpenTelemetry}, a metrics
+collection and distributed tracing framework.")
+    (license license:asl2.0)))
+
 (define-public rust-opentelemetry-jaeger-0.20
   (package
     (name "rust-opentelemetry-jaeger")
-- 
2.41.0