diff options
Diffstat (limited to 'gnu/packages/crates-web.scm')
-rw-r--r-- | gnu/packages/crates-web.scm | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 3fe987e5a6..83b0d2aaef 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -1633,6 +1633,193 @@ 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.6 + (package + (name "rust-axum") + (version "0.6.20") + (source + (origin + (method url-fetch) + (uri (crate-uri "axum" version)) + (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") + #:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1) + ("rust-axum-core" ,rust-axum-core-0.3) + ("rust-axum-macros" ,rust-axum-macros-0.3) + ("rust-base64" ,rust-base64-0.21) + ("rust-bitflags" ,rust-bitflags-1) + ("rust-bytes" ,rust-bytes-1) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-headers" ,rust-headers-0.3) + ("rust-http" ,rust-http-0.2) + ("rust-http-body" ,rust-http-body-0.4) + ("rust-hyper" ,rust-hyper-0.14) + ("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-2) + ("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.20) + ("rust-tower" ,rust-tower-0.4) + ("rust-tower-http" ,rust-tower-http-0.4) + ("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.3) + ("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-tower" ,rust-tower-0.4) + ("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))) + +(define-public rust-axum-core-0.3 + (package + (name "rust-axum-core") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "axum-core" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b1d9nkqb8znaba4qqzxzc968qwj4ybn4vgpyz9lz4a7l9vsb7vm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1) + ("rust-bytes" ,rust-bytes-1) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-http" ,rust-http-0.2) + ("rust-http-body" ,rust-http-body-0.4) + ("rust-mime" ,rust-mime-0.3) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-tower-http" ,rust-tower-http-0.4) + ("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-axum" ,rust-axum-0.6) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-hyper" ,rust-hyper-0.14) + ("rust-tokio" ,rust-tokio-1) + ("rust-tower-http" ,rust-tower-http-0.4)))) + (home-page "https://github.com/tokio-rs/axum") + (synopsis "Core types and traits for @code{axum}") + (description "Core types and traits for @code{axum}.") + (license license:expat))) + +(define-public rust-axum-extra-0.7 + (package + (name "rust-axum-extra") + (version "0.7.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "axum-extra" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0gr8mdpi5xfq964zhaygap0qjvzwspvj8fdg41rp6b1qx4xl6gm9")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Not all files included. + #:cargo-inputs (("rust-axum" ,rust-axum-0.6) + ("rust-axum-core" ,rust-axum-core-0.3) + ("rust-axum-macros" ,rust-axum-macros-0.3) + ("rust-bytes" ,rust-bytes-1) + ("rust-cookie" ,rust-cookie-0.17) + ("rust-form-urlencoded" ,rust-form-urlencoded-1) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-http" ,rust-http-0.2) + ("rust-http-body" ,rust-http-body-0.4) + ("rust-mime" ,rust-mime-0.3) + ("rust-multer" ,rust-multer-2) + ("rust-percent-encoding" ,rust-percent-encoding-2) + ("rust-pin-project-lite" ,rust-pin-project-lite-0.2) + ("rust-prost" ,rust-prost-0.11) + ("rust-serde" ,rust-serde-1) + ("rust-serde-html-form" ,rust-serde-html-form-0.2) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tokio-stream" ,rust-tokio-stream-0.1) + ("rust-tokio-util" ,rust-tokio-util-0.7) + ("rust-tower" ,rust-tower-0.4) + ("rust-tower-layer" ,rust-tower-layer-0.3) + ("rust-tower-service" ,rust-tower-service-0.3)) + #:cargo-development-inputs (("rust-axum" ,rust-axum-0.6) + ("rust-axum-macros" ,rust-axum-macros-0.3) + ("rust-http-body" ,rust-http-body-0.4) + ("rust-hyper" ,rust-hyper-0.14) + ("rust-reqwest" ,rust-reqwest-0.11) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tower" ,rust-tower-0.4) + ("rust-tower-http" ,rust-tower-http-0.4)))) + (home-page "https://github.com/tokio-rs/axum") + (synopsis "Extra utilities for axum") + (description "Extra utilities for axum") + (license license:expat))) + +(define-public rust-axum-macros-0.3 + (package + (name "rust-axum-macros") + (version "0.3.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "axum-macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0qkb5cg06bnp8994ay0smk57shd5hpphcmp90kd7p65dxh86mjnd")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--release" "--" + "--skip=debug_handler") + #:cargo-inputs (("rust-heck" ,rust-heck-0.4) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)) + #:cargo-development-inputs (("rust-axum" ,rust-axum-0.6) + ("rust-axum-extra" ,rust-axum-extra-0.7) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-syn" ,rust-syn-2) + ("rust-tokio" ,rust-tokio-1) + ("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/tokio-rs/axum") + (synopsis "Macros for @code{axum}") + (description "Macros for @code{axum}.") + (license license:expat))) + (define-public rust-chunked-transfer-1 (package (name "rust-chunked-transfer") |