From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47206) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSkRr-0007Er-Bv for guix-patches@gnu.org; Sun, 26 Apr 2020 12:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSkRr-0000Vz-0J for guix-patches@gnu.org; Sun, 26 Apr 2020 12:48:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSkRq-0000Ue-Iq for guix-patches@gnu.org; Sun, 26 Apr 2020 12:48:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSkRq-0004fL-Ep for guix-patches@gnu.org; Sun, 26 Apr 2020 12:48:06 -0400 Subject: [bug#40874] [PATCH 14/94] gnu: Add rust-bytes-0.5. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:46760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSkQy-0005yP-Ih for guix-patches@gnu.org; Sun, 26 Apr 2020 12:47:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSkQt-0008Sq-6F for guix-patches@gnu.org; Sun, 26 Apr 2020 12:47:12 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:49133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSkQr-0008QQ-Bo for guix-patches@gnu.org; Sun, 26 Apr 2020 12:47:06 -0400 From: Hartmut Goebel Date: Sun, 26 Apr 2020 18:44:53 +0200 Message-Id: <8882d2c37b7a32f9209fc554cfb6f67b7f59b266.1587919229.git.h.goebel@crazy-compilers.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40874@debbugs.gnu.org * gnu/packages/crates-io.scm (rust-bytes-0.5): New variable. (rust-bytes-0.4): Inherit from it. --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5dbc3f4fe8..a87808b174 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1776,8 +1776,32 @@ little-endian.") (("rust-quickcheck" ,rust-quickcheck-0.2) ("rust-rand" ,rust-rand-0.3)))))) -(define-public rust-bytes-0.4 +(define-public rust-bytes-0.5 (package + (name "rust-bytes") + (version "0.5.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "bytes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1q9r7si1l8vndg4n2ny2nv833ghp5vyqzk5indb9rmhd5ibaq2hk")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ;; FIXME requires Raus >= 1.39 + #:cargo-inputs + (("rust-serde" ,rust-serde-1.0)) + #:cargo-development-inputs + (("rust-loom" ,rust-loom-0.2) + ("rust-serde-test" ,rust-serde-test-1.0)))) + (home-page "https://github.com/tokio-rs/bytes") + (synopsis "Types and traits for working with bytes") + (description "Types and traits for working with bytes.") + (license license:expat))) + +(define-public rust-bytes-0.4 + (package/inherit rust-bytes-0.5 (name "rust-bytes") (version "0.4.12") (source @@ -1798,13 +1822,7 @@ little-endian.") ("rust-iovec" ,rust-iovec-0.1) ("rust-serde" ,rust-serde-1.0)) #:cargo-development-inputs - (("rust-serde-test" ,rust-serde-test-1.0)))) - (home-page "https://github.com/tokio-rs/bytes") - (synopsis - "Types and traits for working with bytes") - (description - "Types and traits for working with bytes.") - (license license:expat))) + (("rust-serde-test" ,rust-serde-test-1.0)))))) (define-public rust-bytes-0.3 (package -- 2.21.3