Subject: [bug#68312] [PATCH 029/156] gnu: Add rust-config-0.13.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:06 +0100

* gnu/packages/crates-io.scm (rust-config-0.13): New variable.
(rust-config-0.11): Inherit from rust-config-0.13.

Change-Id: I3af5b4e5fe5f65727a02df4e244d7f04dc4bc26b
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d6b6866900b..923aebec6c9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13923,8 +13923,42 @@ (define-public rust-concurrent-queue-1
        (("rust-easy-parallel" ,rust-easy-parallel-3)
         ("rust-fastrand" ,rust-fastrand-1))))))
 
+(define-public rust-config-0.13
+  (package
+    (name "rust-config")
+    (version "0.13.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "config" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1jjag1x3rl77zjykbrykzhd5fsiv8vy40y4lxkj46xicjw8qwwr3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-json5" ,rust-json5-0.4)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-pathdiff" ,rust-pathdiff-0.2)
+                       ("rust-ron" ,rust-ron-0.7)
+                       ("rust-rust-ini" ,rust-rust-ini-0.18)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-toml" ,rust-toml-0.5)
+                       ("rust-yaml-rust" ,rust-yaml-rust-0.4))))
+    (home-page "https://github.com/mehcode/config-rs")
+    (synopsis "Layered configuration system for Rust applications")
+    (description
+     "This package provides a layered configuration system for Rust
+applications.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-config-0.11
   (package
+    (inherit rust-config-0.13)
     (name "rust-config")
     (version "0.11.0")
     (source
@@ -13934,7 +13968,6 @@ (define-public rust-config-0.11
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0sdkxv77m65frsn3bx0r3v7asxar3gy3hmghcfk6h4rbijars6qv"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -13945,13 +13978,7 @@ (define-public rust-config-0.11
         ("rust-serde-hjson" ,rust-serde-hjson-0.9)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-toml" ,rust-toml-0.5)
-        ("rust-yaml-rust" ,rust-yaml-rust-0.4))))
-    (home-page "https://github.com/mehcode/config-rs")
-    (synopsis "Layered configuration system for Rust applications")
-    (description
-     "This package provides a layered configuration system for Rust
-applications.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-yaml-rust" ,rust-yaml-rust-0.4))))))
 
 (define-public rust-config-0.10
   (package
-- 
2.41.0