Subject: [PATCH rust-team v2 028/117] gnu: Add rust-konst-0.3.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:54:54 +0200

* gnu/packages/crates-io.scm (rust-konst-0.3): Add variable.
(rust-konst-0.2): Inherit from rust-konst-0.3.

Change-Id: I74632d7cd34a03e28b6dfdc2a77f222338fea935
---
 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4493bb97b4..cab773860b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -36377,8 +36377,39 @@ (define-public rust-koibumi-base32-0.0.2
     (description "This package provides a Base32 encoder/decoder library.")
     (license license:gpl3+)))
 
+(define-public rust-konst-0.3
+  (package
+    (name "rust-konst")
+    (version "0.3.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "konst" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1c7xjlryaac1j6ib30lq2hyi8g2zrdl17xjwia6ly9yl9662lwcd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags `("--release" "--all-targets" "--"
+                            "--skip=string::priv_string_tests::invalid_both"
+                            "--skip=string::priv_string_tests::invalid_end"
+                            "--skip=string::priv_string_tests::invalid_start")
+       #:cargo-inputs (("rust-const-panic" ,rust-const-panic-0.2)
+                       ("rust-konst-kernel" ,rust-konst-kernel-0.3)
+                       ("rust-konst-proc-macros" ,rust-konst-proc-macros-0.3)
+                       ("rust-trybuild" ,rust-trybuild-1)
+                       ("rust-typewit" ,rust-typewit-1))
+       #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://github.com/rodrimati1992/konst/")
+    (synopsis "Const std functions, compile-time comparison and parsing")
+    (description
+     "This package provides Const equivalents of std functions, compile-
+time comparison, and parsing.")
+    (license license:zlib)))
+
 (define-public rust-konst-0.2
   (package
+    (inherit rust-konst-0.3)
     (name "rust-konst")
     (version "0.2.19")
     (source
@@ -36388,18 +36419,11 @@ (define-public rust-konst-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1x3lxxk9vjaiiaabngv7ki2bv9xi36gnqzjzi0s8qfs8wq9hw3rk"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-konst-macro-rules" ,rust-konst-macro-rules-0.2)
                        ("rust-konst-proc-macros" ,rust-konst-proc-macros-0.2)
                        ("rust-trybuild" ,rust-trybuild-1))
-       #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8))))
-    (home-page "https://github.com/rodrimati1992/konst/")
-    (synopsis
-     "Const equivalents of std functions, compile-time comparison, and parsing")
-    (description
-     "Const equivalents of std functions, compile-time comparison, and parsing.")
-    (license license:zlib)))
+       #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8))))))
 
 (define-public rust-konst-kernel-0.3
   (package
-- 
2.41.0