aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-web.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-03-18 11:55:58 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:43:03 +0300
commitb6ed5bdbcd064a41bb1e8631b5106c04f122b8bd (patch)
tree8a3396cd48aa914d562d8efb2841a4c12914793f /gnu/packages/crates-web.scm
parent584a6b3044df76da1d2ed493be9682989e469e4b (diff)
downloadguix-b6ed5bdbcd064a41bb1e8631b5106c04f122b8bd.tar.gz
guix-b6ed5bdbcd064a41bb1e8631b5106c04f122b8bd.zip
gnu: Add rust-axum-0.7.
* gnu/packages/crates-web.scm (rust-axum-0.7): New variable. (rust-axum-0.6): Inherit from rust-axum-0.7. Change-Id: I23cdd494fd290dab34a6ec2113f6aae6df86e685
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r--gnu/packages/crates-web.scm76
1 files changed, 70 insertions, 6 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index fd7bf3a386..d968852e7c 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -1890,8 +1890,77 @@ built on the Actix ecosystem.")
("rust-serde-urlencoded" ,rust-serde-urlencoded-0.6)
("rust-tokio-timer" ,rust-tokio-timer-0.2))))))
+(define-public rust-axum-0.7
+ (package
+ (name "rust-axum")
+ (version "0.7.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "axum" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "17kv7v8m981cqmfbv5m538fzxhw51l9bajv06kfddi7njarb8dhj"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+ ("rust-axum-core" ,rust-axum-core-0.4)
+ ("rust-axum-macros" ,rust-axum-macros-0.4)
+ ("rust-base64" ,rust-base64-0.21)
+ ("rust-bytes" ,rust-bytes-1)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-http" ,rust-http-1)
+ ("rust-http-body" ,rust-http-body-1)
+ ("rust-http-body-util" ,rust-http-body-util-0.1)
+ ("rust-hyper" ,rust-hyper-1)
+ ("rust-hyper-util" ,rust-hyper-util-0.1)
+ ("rust-itoa" ,rust-itoa-1)
+ ("rust-matchit" ,rust-matchit-0.7)
+ ("rust-memchr" ,rust-memchr-2)
+ ("rust-mime" ,rust-mime-0.3)
+ ("rust-multer" ,rust-multer-3)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+ ("rust-rustversion" ,rust-rustversion-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-serde-path-to-error" ,rust-serde-path-to-error-0.1)
+ ("rust-serde-urlencoded" ,rust-serde-urlencoded-0.7)
+ ("rust-sha1" ,rust-sha1-0.10)
+ ("rust-sync-wrapper" ,rust-sync-wrapper-0.1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-tungstenite" ,rust-tokio-tungstenite-0.21)
+ ("rust-tower" ,rust-tower-0.4)
+ ("rust-tower-http" ,rust-tower-http-0.5)
+ ("rust-tower-layer" ,rust-tower-layer-0.3)
+ ("rust-tower-service" ,rust-tower-service-0.3)
+ ("rust-tracing" ,rust-tracing-0.1))
+ #:cargo-development-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-axum-macros" ,rust-axum-macros-0.4)
+ ("rust-quickcheck" ,rust-quickcheck-1)
+ ("rust-quickcheck-macros" ,rust-quickcheck-macros-1)
+ ("rust-reqwest" ,rust-reqwest-0.11)
+ ("rust-rustversion" ,rust-rustversion-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-time" ,rust-time-0.3)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+ ("rust-tokio-tungstenite" ,rust-tokio-tungstenite-0.21)
+ ("rust-tower" ,rust-tower-0.4)
+ ("rust-tower-http" ,rust-tower-http-0.5)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)
+ ("rust-uuid" ,rust-uuid-1))))
+ (home-page "https://github.com/tokio-rs/axum")
+ (synopsis "Web framework that focuses on ergonomics and modularity")
+ (description "Web framework that focuses on ergonomics and modularity.")
+ (license license:expat)))
+
(define-public rust-axum-0.6
(package
+ (inherit rust-axum-0.7)
(name "rust-axum")
(version "0.6.20")
(source
@@ -1901,7 +1970,6 @@ built on the Actix ecosystem.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1gynqkg3dcy1zd7il69h8a3zax86v6qq5zpawqyn87mr6979x0iv"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-test-flags '("--release" "--lib" "--bins" "--tests" "--"
"--skip=routing::tests::logging_rejections")
@@ -1953,11 +2021,7 @@ built on the Actix ecosystem.")
("rust-tower-http" ,rust-tower-http-0.4)
("rust-tracing" ,rust-tracing-0.1)
("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)
- ("rust-uuid" ,rust-uuid-1))))
- (home-page "https://github.com/tokio-rs/axum")
- (synopsis "Web framework that focuses on ergonomics and modularity")
- (description "Web framework that focuses on ergonomics and modularity.")
- (license license:expat)))
+ ("rust-uuid" ,rust-uuid-1))))))
(define-public rust-axum-core-0.3
(package