Subject: [PATCH 15/21] gnu: Add rust-slog-stdlog-4.

From: aecepoglu <[email-masked]>
Date: Thu, 4 Feb 2021 14:38:42 +0300

* gnu/packages/crates-io.scm (rust-slog-stdlog-4): New variable.
---
 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 571c3b19ff..e79b71d8b9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33555,6 +33555,37 @@ data type.")
             license:expat
             license:asl2.0))))
 
+(define-public rust-slog-stdlog-4
+  (package
+    (name "rust-slog-stdlog")
+    (version "4.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "slog-stdlog" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0nhg9mwaf5y1gs2f7nbz3r9fngq0g3d3qvz66z5lzgxd09rsna42"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-log" ,rust-log-0.4)
+         ("rust-slog" ,rust-slog-2)
+         ("rust-slog-scope" ,rust-slog-scope-4))
+        #:cargo-development-inputs
+        (("rust-slog-async" ,rust-slog-async-2)
+         ("rust-slog-term" ,rust-slog-term-2))))
+    (home-page "https://github.com/slog-rs/stdlog")
+    (synopsis "log crate adapter for slog-rs")
+    (description "This crate provides two way compatibility with Rust standard
+ @code{log} crate")
+    (license
+      (list license:mpl2.0
+            license:expat
+            license:asl2.0))))
+
 (define-public rust-slog-async-2
   (package
     (name "rust-slog-async")
-- 
2.30.0