diff options
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d18e130faf..fdd7e2dd07 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -7120,6 +7120,46 @@ Transparency logs for use with sct crate.") use with bindgen.") (license (list license:expat license:asl2.0)))) +(define-public rust-curl-0.4 + (package + (name "rust-curl") + (version "0.4.34") + (source + (origin + (method url-fetch) + (uri (crate-uri "curl" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0vkm6fyizf8m9yxpv3n5pm9ag3bwlyqa6nz2ga8qkzm5y4m1cs72")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #false ;require internet access + #:cargo-inputs + (("rust-curl-sys" ,rust-curl-sys-0.4) + ("rust-libc" ,rust-libc-0.2) + ("rust-openssl-probe" ,rust-openssl-probe-0.1) + ("rust-openssl-sys" ,rust-openssl-sys-0.9) + ("rust-schannel" ,rust-schannel-0.1) + ("rust-socket2" ,rust-socket2-0.3) + ("rust-winapi" ,rust-winapi-0.3)) + #:cargo-development-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-mio" ,rust-mio-0.6) + ("rust-mio-extras" ,rust-mio-extras-2)))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("curl" ,curl) + ("nghttp2" ,nghttp2) + ("openssl" ,openssl) + ("zlib" ,zlib))) + (home-page "https://github.com/alexcrichton/curl-rust") + (synopsis "Rust bindings to libcurl for making HTTP requests") + (description + "This package provides Rust bindings to libcurl for making HTTP +requests") + (license license:expat))) + (define-public rust-curl-sys-0.4 (package (name "rust-curl-sys") |