[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
202/330: gnu: Add rust-isahc-1.
From: |
guix-commits |
Subject: |
202/330: gnu: Add rust-isahc-1. |
Date: |
Mon, 18 Mar 2024 07:16:11 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit a016c2c0df540de1e44b0cd7c5c50b398260172d
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:03:03 2024 +0100
gnu: Add rust-isahc-1.
* gnu/packages/crates-web.scm (rust-isahc-1): Add variable.
(rust-isahc-0.9): Inherit rust-isahc-1.
Change-Id: I17aa488a0db5d8e3fefadeafe4f30e4d04d415fd
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-web.scm | 86 +++++++++++++++++++++++++++++++++++----------
1 file changed, 68 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index d974579b25..0d188a2aab 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3492,8 +3492,72 @@ bottlenecks encountered in highly concurrent code by
avoiding shared writes
and locking in the core framework.")
(license license:expat)))
+(define-public rust-isahc-1
+ (package
+ (name "rust-isahc")
+ (version "1.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "isahc" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1scfgyv3dpjbkqa9im25cd12cs6rbd8ygcaw67f3dx41sys08kik"))
+ (modules '((guix build utils)))
+ (snippet '(substitute* "Cargo.toml"
+ ((".*static-curl.*") "")))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; unresolved import `testserver`
+ #:cargo-inputs (("rust-async-channel" ,rust-async-channel-1)
+ ("rust-castaway" ,rust-castaway-0.1)
+ ("rust-crossbeam-utils" ,rust-crossbeam-utils-0.7)
+ ("rust-curl" ,rust-curl-0.4)
+ ("rust-curl-sys" ,rust-curl-sys-0.4)
+ ("rust-encoding-rs" ,rust-encoding-rs-0.8)
+ ("rust-event-listener" ,rust-event-listener-2)
+ ("rust-futures-lite" ,rust-futures-lite-1)
+ ("rust-http" ,rust-http-0.2)
+ ("rust-httpdate" ,rust-httpdate-1)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mime" ,rust-mime-0.3)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-parking-lot" ,rust-parking-lot-0.9)
+ ("rust-polling" ,rust-polling-2)
+ ("rust-publicsuffix" ,rust-publicsuffix-2)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-slab" ,rust-slab-0.4)
+ ("rust-sluice" ,rust-sluice-0.5)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-tracing-futures" ,rust-tracing-futures-0.2)
+ ("rust-url" ,rust-url-2)
+ ("rust-waker-fn" ,rust-waker-fn-1))
+ #:cargo-development-inputs
+ (("rust-env-logger" ,rust-env-logger-0.9)
+ ("rust-flate2" ,rust-flate2-1)
+ ("rust-indicatif" ,rust-indicatif-0.15)
+ ("rust-rayon" ,rust-rayon-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1)
+ ("rust-structopt" ,rust-structopt-0.3)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-test-case" ,rust-test-case-2)
+ ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.2))))
+ (native-inputs (list pkg-config))
+ (inputs (list curl openssl zlib))
+ (home-page "https://github.com/sagebind/isahc")
+ (synopsis "Practical and fun HTTP client")
+ (description
+ "Isahc is an acronym that stands for Incredible Streaming Asynchronous
+HTTP Client. It is an asynchronous HTTP client for the Rust language. It
+uses libcurl as an HTTP engine inside, and provides an easy-to-use API on top
+that integrates with Rust idioms.")
+ (license license:expat)))
+
(define-public rust-isahc-0.9
(package
+ (inherit rust-isahc-1)
(name "rust-isahc")
(version "0.9.14")
(source
@@ -3503,11 +3567,9 @@ and locking in the core framework.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "12iqz5fj0509pr813pds2fgdk649a0b6ipvy3pqjwb1ywh68m572"))
- (snippet
- #~(begin (use-modules (guix build utils))
- (substitute* "Cargo.toml"
- (("\"static-curl\", ") ""))))))
- (build-system cargo-build-system)
+ (modules '((guix build utils)))
+ (snippet '(substitute* "Cargo.toml"
+ (("\"static-curl\", ") "")))))
(arguments
`(#:tests? #f ; use of undeclared crate or module `testserver`
#:cargo-inputs
@@ -3538,19 +3600,7 @@ and locking in the core framework.")
("rust-indicatif" ,rust-indicatif-0.15)
("rust-structopt" ,rust-structopt-0.3)
("rust-test-case" ,rust-test-case-1)
- ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.2))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list curl openssl zlib))
- (home-page "https://github.com/sagebind/isahc")
- (synopsis "Practical HTTP client")
- (description
- "Isahc is an acronym that stands for Incredible Streaming Asynchronous
-HTTP Client. It is an asynchronous HTTP client for the Rust language. It
-uses libcurl as an HTTP engine inside, and provides an easy-to-use API on top
-that integrates with Rust idioms.")
- (license license:expat)))
+ ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.2))))))
(define-public rust-multipart-0.18
(package
- 323/330: gnu: Add rust-csrf-0.4., (continued)
- 323/330: gnu: Add rust-csrf-0.4., guix-commits, 2024/03/18
- 330/330: gnu: Add rust-salvo-0.16., guix-commits, 2024/03/18
- 313/330: gnu: Add rust-handlebars-4., guix-commits, 2024/03/18
- 213/330: gnu: Add rust-libtest-mimic-0.7., guix-commits, 2024/03/18
- 207/330: gnu: rust-mockall-derive-0.11: Update to 0.11.4., guix-commits, 2024/03/18
- 206/330: gnu: Add rust-fragile-2., guix-commits, 2024/03/18
- 210/330: gnu: rust-snapbox-macros-0.3: Update to 0.3.8., guix-commits, 2024/03/18
- 212/330: gnu: Add rust-anstyle-svg-0.1., guix-commits, 2024/03/18
- 217/330: gnu: Add rust-toml-edit-0.22., guix-commits, 2024/03/18
- 205/330: gnu: Add rust-chacha20poly1305-0.10., guix-commits, 2024/03/18
- 202/330: gnu: Add rust-isahc-1.,
guix-commits <=
- 204/330: gnu: Add rust-str-stack-0.1., guix-commits, 2024/03/18
- 215/330: gnu: Add rust-escape8259-0.5., guix-commits, 2024/03/18
- 222/330: gnu: rust-palette-derive-0.7: Update to 0.7.5., guix-commits, 2024/03/18
- 211/330: gnu: Add rust-snapbox-0.5., guix-commits, 2024/03/18
- 224/330: gnu: Add rust-path-clean-1., guix-commits, 2024/03/18
- 225/330: gnu: rust-rayon-1: Update to 1.9.0., guix-commits, 2024/03/18
- 218/330: gnu: Add rust-circular-0.3., guix-commits, 2024/03/18
- 226/330: gnu: rust-rayon-core-1: Update to 1.12.1., guix-commits, 2024/03/18
- 228/330: gnu: Add rust-wasm-sync-0.1., guix-commits, 2024/03/18
- 229/330: gnu: eza: Update to 0.18.7., guix-commits, 2024/03/18