Subject: [PATCH rust-team v3 48/75] gnu: Add rust-pretty-hex-0.4.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:20 +0200

* gnu/packages/crates-io.scm (rust-pretty-hex-0.4): Add variable.
(rust-pretty-hex-0.3): Inherit from rust-pretty-hex-0.4.

Change-Id: Ia64b09cc50d7f7291644327e3b66cc22570e8f2a
---
 gnu/packages/crates-io.scm | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e2f64d7001..b01becbbf1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57795,25 +57795,44 @@ (define-public rust-pretty-env-logger-0.3
         ("rust-chrono" ,rust-chrono-0.4)
         ("rust-env-logger" ,rust-env-logger-0.6))))))
 
-(define-public rust-pretty-hex-0.3
+(define-public rust-pretty-hex-0.4
   (package
     (name "rust-pretty-hex")
-    (version "0.3.0")
+    (version "0.4.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pretty-hex" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1mf8xvlfri4impj2paj4azx7hxh7l0i38cjyib1hiikwvlqhiyn6"))))
+        (base32 "0m0j8pqmh6gq1mq7yzp12z0ix159fw0di5lhiwv2y1j0m3j3xj5v"))))
     (build-system cargo-build-system)
     (arguments
-     (list #:cargo-development-inputs `(("rust-heapless" ,rust-heapless-0.5))))
+     `(#:cargo-development-inputs
+       (("rust-heapless" ,rust-heapless-0.8))))
     (home-page "https://github.com/wolandr/pretty-hex")
     (synopsis "Prettified output of hexadecimal byte slices")
-    (description "Pretty hex dump of byte slices in the common style.")
+    (description
+     "This package provides pretty hex dumps of bytes slice in the
+common style.")
     (license license:expat)))
 
+(define-public rust-pretty-hex-0.3
+  (package
+    (inherit rust-pretty-hex-0.4)
+    (name "rust-pretty-hex")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty-hex" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mf8xvlfri4impj2paj4azx7hxh7l0i38cjyib1hiikwvlqhiyn6"))))
+    (arguments
+     (list #:cargo-development-inputs
+           `(("rust-heapless" ,rust-heapless-0.5))))))
+
 (define-public rust-prettyplease-0.2
   (package
     (name "rust-prettyplease")
-- 
2.41.0