Subject: [PATCH v8 12/44] gnu: Add rust-structmeta-0.3.

From: Herman Rimm <[email-masked]>
Date: Wed, 5 Feb 2025 19:31:27 +0100

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-io.scm (rust-structmeta-0.3): New variable.
(rust-structmeta-0.2): Inherit rust-structmeta-0.3.

Change-Id: Ifa47a9fd8dc6620065e31c77d517194dd4f2c4c1
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d18c3827bcc..2ae7dd1cda6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -76720,30 +76720,49 @@ (define-public rust-struct-patch-derive-0.4
 for your structs.")
     (license license:expat)))
 
-(define-public rust-structmeta-0.2
+(define-public rust-structmeta-0.3
   (package
     (name "rust-structmeta")
-    (version "0.2.0")
+    (version "0.3.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "structmeta" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0bcj4c2p2j091mn9ld2hbcx77flqjx65ihb9gbb5c12gal4rxbbq"))))
+        (base32 "0afk0s9paazsvyvsirxvbnqp3blhdck3fmfhdw7xf209skc7a59f"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-quote" ,rust-quote-1)
-                       ("rust-structmeta-derive" ,rust-structmeta-derive-0.2)
-                       ("rust-syn" ,rust-syn-2))
-       #:cargo-development-inputs (("rust-syn" ,rust-syn-2))))
+                       ("rust-structmeta-derive" ,rust-structmeta-derive-0.3)
+                       ("rust-syn" ,rust-syn-2))))
     (home-page "https://github.com/frozenlib/structmeta")
     (synopsis "Parse Rust's attribute arguments by defining a struct")
     (description "This package lets you parse Rust's attribute arguments by
 defining a struct.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-structmeta-0.2
+  (package
+    (inherit rust-structmeta-0.3)
+    (name "rust-structmeta")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "structmeta" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bcj4c2p2j091mn9ld2hbcx77flqjx65ihb9gbb5c12gal4rxbbq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-structmeta-derive" ,rust-structmeta-derive-0.2)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-syn" ,rust-syn-2))))))
+
 (define-public rust-structmeta-0.1
   (package
     (inherit rust-structmeta-0.2)
-- 
2.47.1