Subject: [bug#69257] [PATCH 135/228] gnu: Add rust-konst-0.3.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:25 +0100

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

Change-Id: I74632d7cd34a03e28b6dfdc2a77f222338fea935
---
 gnu/packages/crates-io.scm | 68 ++++++++++++++++++++++++--------------
 1 file changed, 44 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 706b48e8cc..8f15fdfba6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29414,30 +29414,6 @@ (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.2
-  (package
-    (name "rust-konst")
-    (version "0.2.19")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "konst" version))
-       (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)))
-
 (define-public rust-human-format-1
   (package
     (name "rust-human-format")
@@ -33070,6 +33046,50 @@ (define-public rust-khronos-api-3
      "The Khronos XML API Registry, exposed as byte string constants.")
     (license license:asl2.0)))
 
+(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-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
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "konst" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1x3lxxk9vjaiiaabngv7ki2bv9xi36gnqzjzi0s8qfs8wq9hw3rk"))))
+    (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))))))
+
 (define-public rust-konst-kernel-0.3
   (package
     (name "rust-konst-kernel")
-- 
2.41.0