gnu: Add rust-actix-router-0.5.

* gnu/packages/crates-web.scm (rust-actix-router-0.5): New variable.
(rust-actix-router-0.2): Inherit from rust-actix-router-0.5.

Change-Id: I1440c1b4c50499539ef9c4fa758d0b3d82d07760
This commit is contained in:
Efraim Flashner 2024-03-18 11:38:40 +02:00
parent 9bb227d9ae
commit 84bdb3cb2f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -744,8 +744,34 @@ (define-public rust-actix-macros-0.1
("rust-futures-util" ,rust-futures-util-0.3)
("rust-trybuild" ,rust-trybuild-1))))))
(define-public rust-actix-router-0.5
(package
(name "rust-actix-router")
(version "0.5.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "actix-router" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "04f5cdag2h9lbrgb0pzwznpfrl3ajbdxlsvb8a2kci1rcmcpa96j"))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f ; cannot find derive macro `Deserialize` in this scope
#:cargo-inputs (("rust-bytestring" ,rust-bytestring-0.1)
("rust-http" ,rust-http-0.2)
("rust-regex" ,rust-regex-1)
("rust-serde" ,rust-serde-1)
("rust-tracing" ,rust-tracing-0.1))))
(home-page "https://github.com/actix/actix-web")
(synopsis "Resource path matching and router library")
(description
"This package provides resource path matching and router library.")
(license (list license:expat license:asl2.0))))
(define-public rust-actix-router-0.2
(package
(inherit rust-actix-router-0.5)
(name "rust-actix-router")
(version "0.2.5")
(source
@ -755,7 +781,6 @@ (define-public rust-actix-router-0.2
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0df2626hk4n4yki6j88v3k0gcm8pi5hdnm1mldyvyi8nvbdzgldv"))))
(build-system cargo-build-system)
(arguments
;; Tests fail with "error[E0432]: unresolved import `serde_derive`".
`(#:tests? #false
@ -764,11 +789,7 @@ (define-public rust-actix-router-0.2
("rust-http" ,rust-http-0.2)
("rust-log" ,rust-log-0.4)
("rust-regex" ,rust-regex-1)
("rust-serde" ,rust-serde-1))))
(home-page "https://actix.rs")
(synopsis "Resource path matching library")
(description "This package provides resource path matching library.")
(license (list license:expat license:asl2.0))))
("rust-serde" ,rust-serde-1))))))
(define-public rust-actix-router-0.1
(package