From 8a2c04467f54cf69c7123a461628c31d9948fb46 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 15 Dec 2019 10:31:43 -0800 Subject: [PATCH 201/206] gnu: Add rust-http-0.1. * gnu/packages/crates-io.scm (rust-http-0.1): New variable. --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f2b3aafd75..5ac5988c2c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3809,6 +3809,40 @@ compile time.") "Internal implementation of the hex-literal crate") (license `(,license:asl2.0 ,license:expat)))) +(define-public rust-http-0.1 + (package + (name "rust-http") + (version "0.1.17") + (source + (origin + (method url-fetch) + (uri (crate-uri "http" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "06icxvrd26r6s7dzjavja7r47hgjb9851wblqh8frxnsy3q29lzf")))) + (build-system cargo-build-system) + ;; (arguments + ;; `(#:cargo-inputs + ;; (("rust-bytes" ,rust-bytes-0.4) + ;; ("rust-fnv" ,rust-fnv-1.0) + ;; ("rust-itoa" ,rust-itoa-0.4)) + ;; #:cargo-development-inputs + ;; (("rust-indexmap" ,rust-indexmap-1.0) + ;; ("rust-quickcheck" ,rust-quickcheck-0.8) + ;; ("rust-rand" ,rust-rand-0.4) + ;; ("rust-seahash" ,rust-seahash-3.0) + ;; ("rust-serde" ,rust-serde-1.0) + ;; ("rust-serde-json" ,rust-serde-json-1.0)))) + (home-page "https://github.com/hyperium/http") + (synopsis + "Set of types for representing HTTP requests and responses") + (description + "This package provides a set of types for representing HTTP +requests and responses.") + (license `(,license:asl2.0 ,license:expat)))) + (define-public rust-humantime-1.2 (package (name "rust-humantime") -- 2.24.0