[bug#75677,rust-team,v2,56/81] gnu: rust-juniper-codegen-0.16: New variable.

Message ID 20250308033446.2101481-57-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:34 a.m. UTC
  * gnu/packages/crates-io.scm (rust-juniper-codegen-0.16): New variable.
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c0094a9a9e..2950e8b0e3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38243,8 +38243,40 @@  (define-public rust-juniper-0.14
        (("rust-bencher" ,rust-bencher-0.1)
         ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-juniper-codegen-0.16
+  (package
+    (name "rust-juniper-codegen")
+    (version "0.16.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "juniper_codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14x6jrq40dy2visrk6ccnqn3nhcg4s6iwrix09lx9504cr3bw3bn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags ;; Doc tests fail with unresolved imports
+       '("--release" "--lib" "--bins" "--tests")
+       #:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-2)
+        ("rust-url" ,rust-url-2))
+       #:cargo-development-inputs
+       (("rust-derive-more" ,rust-derive-more-0.99)
+        ("rust-futures" ,rust-futures-0.3)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/graphql-rust/juniper")
+    (synopsis "Internal custom derive trait for Juniper GraphQL")
+    (description
+     "This package provides an internal custom derive trait for Juniper
+GraphQL.")
+    (license license:bsd-2)))
+
 (define-public rust-juniper-codegen-0.15
   (package
+    (inherit rust-juniper-codegen-0.16)
     (name "rust-juniper-codegen")
     (version "0.15.9")
     (source
@@ -38254,7 +38286,6 @@  (define-public rust-juniper-codegen-0.15
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1nvigsc1yrfv09wx1yv830dd60ay556haz87p80h7m8s0rqpdsdf"))))
-    (build-system cargo-build-system)
     (arguments
      ;; XXX: Tests fail with "error[E0599]: no variant or associated item
      ;; named `__TestExhaustive` found for enum `syn::Type` in the current
@@ -38266,13 +38297,7 @@  (define-public rust-juniper-codegen-0.15
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))
        #:cargo-development-inputs
-       (("rust-juniper" ,rust-juniper-0.15))))
-    (home-page "https://github.com/graphql-rust/juniper")
-    (synopsis "Internal custom derive trait for Juniper GraphQL")
-    (description
-     "This package provides an internal custom derive trait for Juniper
-GraphQL.")
-    (license license:bsd-2)))
+       (("rust-juniper" ,rust-juniper-0.15))))))
 
 (define-public rust-juniper-codegen-0.14
   (package