Subject: [bug#75127] [PATCH v4 34/57] gnu: Add rust-structmeta-0.3.

From: Jordan Moore <[email-masked]>
Date: Sat, 4 Jan 2025 23:19:57 -0500

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

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 d43453b362..3793ae00c1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -75846,8 +75846,32 @@ (define-public rust-struct-patch-derive-0.4
 for your structs.")
     (license license:expat)))
 
+(define-public rust-structmeta-0.3
+  (package
+    (name "rust-structmeta")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "structmeta" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (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.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 provides 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
@@ -75863,12 +75887,7 @@ (define-public rust-structmeta-0.2
                        ("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))))
-    (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))))
+       #:cargo-development-inputs (("rust-syn" ,rust-syn-2))))))
 
 (define-public rust-structmeta-0.1
   (package
-- 
2.46.0