aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-18 11:39:08 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:42:57 +0300
commit78a380874e9aefaaad9f1f8cb2fc8433ca2e39e9 (patch)
treec6195ef57a3e23e4823f02f9f15b2af0a5445dad
parent84bdb3cb2f282148e8b4929d4d320c9b8018d18d (diff)
downloadguix-78a380874e9aefaaad9f1f8cb2fc8433ca2e39e9.tar
guix-78a380874e9aefaaad9f1f8cb2fc8433ca2e39e9.tar.gz
gnu: Add rust-actix-server-2.
* gnu/packages/crates-web.scm (rust-actix-server-2): New variable. (rust-actix-server-1): Inherit from rust-actix-server-2. Change-Id: I067c211d0e3af87c9514a41ae95146f199795ced
-rw-r--r--gnu/packages/crates-web.scm41
1 files changed, 33 insertions, 8 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 862f7a80df..43fe583d37 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -880,8 +880,40 @@ during testing.")
("rust-tokio-reactor" ,rust-tokio-reactor-0.1)
("rust-tokio-timer" ,rust-tokio-timer-0.2))))))
+(define-public rust-actix-server-2
+ (package
+ (name "rust-actix-server")
+ (version "2.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "actix-server" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1m62qbg7vl1wddr6mm8sd4rnvd3w5v3zcn8fmdpfl8q4xxz3xc9y"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; unresolved import `actix_codec`
+ #:cargo-inputs (("rust-actix-rt" ,rust-actix-rt-2)
+ ("rust-actix-service" ,rust-actix-service-2)
+ ("rust-actix-utils" ,rust-actix-utils-3)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-mio" ,rust-mio-0.8)
+ ("rust-socket2" ,rust-socket2-0.5)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-uring" ,rust-tokio-uring-0.4)
+ ("rust-tracing" ,rust-tracing-0.1))))
+ (home-page "https://actix.rs")
+ (synopsis "General purpose TCP server built for the Actix ecosystem")
+ (description
+ "This package provides a general purpose TCP server built for the Actix
+ecosystem.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-actix-server-1
(package
+ (inherit rust-actix-server-2)
(name "rust-actix-server")
(version "1.0.4")
(source
@@ -891,7 +923,6 @@ during testing.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "13khzd6pz9pqksxmw2syipfwq2gi5v9warx6pa24g8iccxp7wh25"))))
- (build-system cargo-build-system)
(arguments
;; Tests fail with "error[E0432]: unresolved import `bytes`" error.
`(#:tests? #false
@@ -907,13 +938,7 @@ during testing.")
("rust-mio-uds" ,rust-mio-uds-0.6)
("rust-num-cpus" ,rust-num-cpus-1)
("rust-slab" ,rust-slab-0.4)
- ("rust-socket2" ,rust-socket2-0.3))))
- (home-page "https://actix.rs")
- (synopsis "General purpose TCP server built for the Actix ecosystem")
- (description
- "This package provides a general purpose TCP server built for the Actix
-ecosystem.")
- (license (list license:expat license:asl2.0))))
+ ("rust-socket2" ,rust-socket2-0.3))))))
(define-public rust-actix-server-0.6
(package