summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-25 09:52:49 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:58:40 +0200
commit446c232fdfbfb2c7f32bffd29d0860f7f0cbc668 (patch)
tree843b8a8e88c5fca279c81854c4a026df36ab6451 /gnu
parent9d5abdc8b75489d07e0c79b6436d19d942e25531 (diff)
downloadguix-446c232fdfbfb2c7f32bffd29d0860f7f0cbc668.tar.gz
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 25 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b5a8de5c34..c61a1f4614 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