[bug#75127,rust-team,v2,36/67] gnu: Add rust-structmeta-0.3.

Message ID 795207111c75b52cc654f053df4eabeb96c043f3.1735270014.git.lockbox@struct.foo
State New
Headers
Series [bug#75127,rust-team,v2,01/67] gnu: Add cargo-nextest. |

Commit Message

Jordan Moore Dec. 27, 2024, 3:26 a.m. UTC
  * 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(-)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bef9ebb020..7037cc6c7b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83290,8 +83290,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
@@ -83307,12 +83331,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