guix-commits
[Top][All Lists]
Advanced

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

167/311: gnu: Add rust-actix-rt-2.


From: guix-commits
Subject: 167/311: gnu: Add rust-actix-rt-2.
Date: Sat, 28 Oct 2023 16:38:53 -0400 (EDT)

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

commit 766d849c907c627b2ddfb3b8db0486a728683dc4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Oct 25 09:52:49 2023 +0300

    gnu: Add rust-actix-rt-2.
    
    * gnu/packages/crates-io.scm (rust-actix-rt-2): New variable.
    (rust-actix-rt-1): Inherit from rust-actix-rt-2.
    
    Change-Id: Ife436711a9b6bc23560a69d4ca65c97fb46a4d84
---
 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 2739a67b42..8720e5a1df 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -956,8 +956,32 @@ during testing.")
         ("rust-serde" ,rust-serde-1)
         ("rust-string" ,rust-string-0.2))))))
 
+(define-public rust-actix-rt-2
+  (package
+    (name "rust-actix-rt")
+    (version "2.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "actix-rt" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "078mjccgha4xlqk2hjb9hxfg26pmpra9v2h2w0m40gvx5102vwr8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; use of undeclared crate or module `hyper`
+       #:cargo-inputs (("rust-actix-macros" ,rust-actix-macros-0.2)
+                       ("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-tokio" ,rust-tokio-1)
+                       ("rust-tokio-uring" ,rust-tokio-uring-0.4))))
+    (home-page "https://actix.rs";)
+    (synopsis "Actix runtime")
+    (description "This package provides Actix runtime.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-actix-rt-1
   (package
+    (inherit rust-actix-rt-2)
     (name "rust-actix-rt")
     (version "1.1.1")
     (source
@@ -967,7 +991,6 @@ during testing.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "09xj7pxy0ng13rd6hya1md98dhk0586p4bsfrwmxxlg028lwqgql"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-actix-macros" ,rust-actix-macros-0.1)
@@ -976,11 +999,7 @@ during testing.")
         ("rust-futures-channel" ,rust-futures-channel-0.3)
         ("rust-futures-util" ,rust-futures-util-0.3)
         ("rust-smallvec" ,rust-smallvec-1)
-        ("rust-tokio" ,rust-tokio-0.2))))
-    (home-page "https://actix.rs";)
-    (synopsis "Actix runtime")
-    (description "This package provides Actix runtime.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-tokio" ,rust-tokio-0.2))))))
 
 (define-public rust-actix-rt-0.2
   (package



reply via email to

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