diff mbox series

[bug#67974,1/3] gnu: Add rust-synstructure-0.13.

Message ID eda8153e8bdefb63440da050841bccf6a6effe58.1703281739.git.jaeme@runbox.com
State New
Headers show
Series gnu: Add rust-databake-0.1 | expand

Commit Message

Jaeme Sifat Dec. 22, 2023, 10:11 p.m. UTC
* gnu/packages/crates-io.scm (rust-synstructure-0.13): New variable.

Change-Id: I3d26757bcd0993c28714325554775c938c185f2b
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 54646a4549..01090ec1a7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77301,8 +77301,35 @@  (define-public rust-synom-0.11
      "Stripped-down Nom parser used by Syn.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-synstructure-0.13
+  (package
+    (name "rust-synstructure")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "synstructure" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01jvj55fxgqa69sp1j9mma09p9vj6zwcvyvh8am81b1zfc7ahnr8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-2)
+        ("rust-unicode-xid" ,rust-unicode-xid-0.2))
+       #:cargo-development-inputs
+       (("rust-synstructure-test-traits" ,rust-synstructure-test-traits-0.1))))
+    (home-page "https://github.com/mystor/synstructure")
+    (synopsis "Helper methods and macros for custom derives")
+    (description
+     "This package provides helper methods and macros for custom derives.")
+    (license license:expat)))
+
 (define-public rust-synstructure-0.12
   (package
+    (inherit rust-synstructure-0.13)
     (name "rust-synstructure")
     (version "0.12.6")
     (source
@@ -77314,7 +77341,6 @@  (define-public rust-synstructure-0.12
        (sha256
         (base32
          "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -77330,12 +77356,7 @@  (define-public rust-synstructure-0.12
          (add-after 'unpack 'fix-test
            (lambda _
              (substitute* "src/lib.rs"
-               (("non_upper_case_globals )") "non_upper_case_globals)")))))))
-    (home-page "https://github.com/mystor/synstructure")
-    (synopsis "Helper methods and macros for custom derives")
-    (description
-     "This package provides helper methods and macros for custom derives.")
-    (license license:expat)))
+               (("non_upper_case_globals )") "non_upper_case_globals)")))))))))
 
 (define-public rust-synstructure-test-traits-0.1
   (package