guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

273/330: gnu: Add rust-actix-web-codegen-4.


From: guix-commits
Subject: 273/330: gnu: Add rust-actix-web-codegen-4.
Date: Mon, 18 Mar 2024 07:16:35 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 84e6fbf9c66fd4a7f31e2feaeb8ca4148512c7c7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 11:41:20 2024 +0200

    gnu: Add rust-actix-web-codegen-4.
    
    * gnu/packages/crates-web.scm (rust-actix-web-codegen-4): New variable.
    (rust-actix-web-codegen-0.4): Inherit from rust-actix-web-codegen-4.
    
    Change-Id: Icf104561223ee2d6320580c75c4798e146752f84
---
 gnu/packages/crates-web.scm | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 3c9e62c262..35d2916897 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -1655,8 +1655,33 @@ the Actix ecosystem.")
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-tokio-timer" ,rust-tokio-timer-0.2))))))
 
+(define-public rust-actix-web-codegen-4
+  (package
+    (name "rust-actix-web-codegen")
+    (version "4.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "actix-web-codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1xalrv1s7imzfgxyql6zii5bpxxkk11rlcc8n4ia3v1hpgmm07zb"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; use of undeclared crate or module `rustversion`
+       #:cargo-inputs (("rust-actix-router" ,rust-actix-router-0.5)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://actix.rs";)
+    (synopsis "Routing and runtime macros for Actix Web")
+    (description
+     "This package provides routing and runtime macros for Actix Web.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-actix-web-codegen-0.4
   (package
+    (inherit rust-actix-web-codegen-4)
     (name "rust-actix-web-codegen")
     (version "0.4.0")
     (source
@@ -1666,17 +1691,12 @@ the Actix ecosystem.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1ys3f6q0hgflqvp271s49q88m41db3iynm7ydxy0wgikjdqgf9md"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
-    (home-page "https://actix.rs";)
-    (synopsis "Actix web proc macros")
-    (description "This package provides Actix web proc macros.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-actix-web-codegen-0.2
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]