Subject: [bug#71076] [PATCH 33/81] gnu: Add rust-android-logger-0.13.

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

* gnu/packages/crates-io.scm (rust-android-logger-0.13): Add variable.
(rust-android-logger-0.11): Inherit from rust-android-logger-0.13.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e7902fec50..9485ed62d4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1582,8 +1582,34 @@ (define-public rust-android-log-sys-0.1
         (base32 "0klq7cp4lm74gjf9p12zdjcr159blbicrfvadmaqvfxbi8njw1dq"))))
     (arguments `(#:skip-build? #true)))) ;XXX: Android only
 
+(define-public rust-android-logger-0.13
+  (package
+    (name "rust-android-logger")
+    (version "0.13.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "android_logger" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bvp6lf39q0zykn70lys562kdb14r9dfm91m79jxq53cfi7i7564"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-android-log-sys-0.3
+                           rust-env-logger-0.10
+                           rust-log-0.4
+                           rust-once-cell-1)))
+    (home-page "https://github.com/rust-mobile/android_logger-rs")
+    (synopsis "Logging implementation for @code{log}")
+    (description
+     "This package provides a logging implementation for `log` which
+hooks to android log output.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-android-logger-0.11
   (package
+    (inherit rust-android-logger-0.13)
     (name "rust-android-logger")
     (version "0.11.3")
     (source
@@ -1593,18 +1619,11 @@ (define-public rust-android-logger-0.11
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0fl8ix7q1cj73lzy6xcwyrqwpvnx5aaxszawidivv9ra4h6bh6c6"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-android-log-sys" ,rust-android-log-sys-0.2)
                        ("rust-env-logger" ,rust-env-logger-0.10)
                        ("rust-log" ,rust-log-0.4)
-                       ("rust-once-cell" ,rust-once-cell-1))))
-    (home-page "https://github.com/rust-mobile/android_logger-rs")
-    (synopsis "Logging implementation for @code{log}")
-    (description
-     "This library is a drop-in replacement for @code{env_logger}.  Instead,
-it outputs messages to Android's logcat.")
-    (license (list license:expat license:asl2.0))))
+                       ("rust-once-cell" ,rust-once-cell-1))))))
 
 (define-public rust-android-logger-0.10
   (package
-- 
2.41.0