Subject: [bug#57040] [PATCH 9/9] gnu: rust-tracing-attributes-0.1: Update to 0.1.20.

From: Nicolas Graves <[email-masked]>
Date: Sun, 07 Aug 2022 16:48:44 +0200

* gnu/packages/crates-io.scm (rust-tracing-attributes-0.1): Update to 0.1.20.
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3641eddeae..1fe95f180a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66289,7 +66289,7 @@ (define-public rust-tracing-0.1
 (define-public rust-tracing-attributes-0.1
   (package
     (name "rust-tracing-attributes")
-    (version "0.1.12")
+    (version "0.1.20")
     (source
      (origin
        (method url-fetch)
@@ -66297,19 +66297,39 @@ (define-public rust-tracing-attributes-0.1
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "0iwzcbcrkyn7bnhdnzp4lanw3md2dx15jr3nyi7881s1gvm81w23"))))
+         "0ars2k4b8s0fxdlxdw9176nykjdqihqi52dj7gkm6p2bbc3cwr9f"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-proc-macro2" ,rust-proc-macro2-1)
+     (list
+       #:phases
+       #~(modify-phases %standard-phases
+         (add-after 'patch-cargo-checksums 'patch-tests
+           (lambda _
+             (substitute* '("tests/support.rs"
+                            "tests/err.rs"
+                            "tests/async_fn.rs"
+                            "tests/ret.rs")
+               (("../../tracing/tests/support/mod.rs")
+                #$(file-append rust-tracing-0.1
+                               "/share/cargo/src/tracing-"
+                               (package-version rust-tracing-0.1)
+                               "/tests/support/mod.rs"))
+               (("../../tracing-futures/tests/support.rs")
+                #$(file-append rust-tracing-futures-0.2
+                               "/share/cargo/src/tracing-futures-"
+                               (package-version rust-tracing-futures-0.2)
+                               "/tests/support.rs"))))))
+       #:cargo-inputs
+       `(("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))
        #:cargo-development-inputs
-       (("rust-async-trait" ,rust-async-trait-0.1)
+       `(("rust-async-trait" ,rust-async-trait-0.1)
         ("rust-tokio-test" ,rust-tokio-test-0.2)
         ("rust-tracing" ,rust-tracing-0.1)
+        ("rust-tracing-futures" ,rust-tracing-futures-0.2)
         ("rust-tracing-core" ,rust-tracing-core-0.1)
-        ("rust-tracing-futures" ,rust-tracing-futures-0.2))))
+        ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))
     (home-page "https://tokio.rs")
     (synopsis "Automatically instrument functions")
     (description "This package provides procedural macro attributes for
-- 
2.37.1

<#secure method=pgpmime mode=sign>

-- 
Best regards,
Nicolas Graves