From patchwork Thu Nov 9 11:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve George X-Patchwork-Id: 56126 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E9EE827BBEC; Thu, 9 Nov 2023 11:37:52 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0B7AD27BBE9 for ; Thu, 9 Nov 2023 11:37:52 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r13Lk-0004CO-5U; Thu, 09 Nov 2023 06:37:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r13Lg-0004BK-O2 for guix-patches@gnu.org; Thu, 09 Nov 2023 06:37:24 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r13Lg-0004sP-G8 for guix-patches@gnu.org; Thu, 09 Nov 2023 06:37:24 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r13MJ-0005cF-Fe; Thu, 09 Nov 2023 06:38:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66563] [PATCH v2 1/1] gnu: Add rust-bzip2-rs Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Thu, 09 Nov 2023 11:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66563 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66563@debbugs.gnu.org Cc: stefan-guix@vodafonemail.de, efraim@flashner.co.il X-Debbugs-Original-Cc: Stefan , guix-patches@gnu.org X-Debbugs-Original-Xcc: efraim@flashner.co.il Received: via spool by 66563-submit@debbugs.gnu.org id=B66563.169952985921493 (code B ref 66563); Thu, 09 Nov 2023 11:38:03 +0000 Received: (at 66563) by debbugs.gnu.org; 9 Nov 2023 11:37:39 +0000 Received: from localhost ([127.0.0.1]:46897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13Lu-0005aY-JU for submit@debbugs.gnu.org; Thu, 09 Nov 2023 06:37:39 -0500 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:40166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13Lo-0005a4-U1 for 66563@debbugs.gnu.org; Thu, 09 Nov 2023 06:37:37 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1r13L5-000aQz-WC; Thu, 09 Nov 2023 12:36:48 +0100 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1r13L5-0007IW-I3; Thu, 09 Nov 2023 12:36:47 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1r13L2-002XEm-Ts; Thu, 09 Nov 2023 12:36:45 +0100 From: Steve George Date: Thu, 9 Nov 2023 11:35:16 +0000 Message-ID: <6ceef07f30a11398e8d3efe6bbe801b9c2da6d18.1699529383.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: <39753ebe-d35d-005e-670a-d38a40dfb5b7@vodafonemail.de> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Stefan * gnu/packages/crates-io.scm (rust-bzip2-rs-0.1): New variable. * gnu/packages/crates-io.scm (rust-bytesize-1): Moved bzip2 alphabetically. Change-Id: I41a7e5a00cb2feec6dcda0360044fb5a91b9e1fe --- gnu/packages/crates-io.scm | 84 ++++++++++++++++++++++++++------------ 1 file changed, 59 insertions(+), 25 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b15c1e5d9ab..606ed5aa297 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2023 Wilko Meyer ;;; Copyright © 2023 Jaeme Sifat ;;; Copyright © 2023 Steve George +;;; Copyright © 2023 Stefan ;;; ;;; This file is part of GNU Guix. ;;; @@ -10748,6 +10749,31 @@ (define-public rust-bytes-0.3 #:cargo-development-inputs (("rust-rand" ,rust-rand-0.3)))))) +(define-public rust-bytesize-1 + (package + (name "rust-bytesize") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bytesize" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1k3aak70iwz4s2gsjbxf0ws4xnixqbdz6p2ha96s06748fpniqx3")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-toml" ,rust-toml-0.7)))) + (home-page "https://github.com/hyunsik/bytesize/") + (synopsis "Human-readable byte count representation library for Rust") + (description "ByteSize is an utility for human-readable byte count +representation, with support for both SI and binary units.") + (license license:asl2.0))) + (define-public rust-bytestring-0.1 (package (name "rust-bytestring") @@ -10805,31 +10831,6 @@ (define-public rust-bzip2-0.4 exposed as Reader/Writer streams.") (license (list license:expat license:asl2.0)))) -(define-public rust-bytesize-1 - (package - (name "rust-bytesize") - (version "1.3.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "bytesize" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1k3aak70iwz4s2gsjbxf0ws4xnixqbdz6p2ha96s06748fpniqx3")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-serde" ,rust-serde-1)) - #:cargo-development-inputs - (("rust-serde" ,rust-serde-1) - ("rust-serde-json" ,rust-serde-json-1) - ("rust-toml" ,rust-toml-0.7)))) - (home-page "https://github.com/hyunsik/bytesize/") - (synopsis "Human-readable byte count representation library for Rust") - (description "ByteSize is an utility for human-readable byte count -representation, with support for both SI and binary units.") - (license license:asl2.0))) - (define-public rust-bzip2-0.3 (package (inherit rust-bzip2-0.4) @@ -10857,6 +10858,39 @@ (define-public rust-bzip2-0.3 ("rust-rand" ,rust-rand-0.3) ("rust-tokio-core" ,rust-tokio-core-0.1)))))) +(define-public rust-bzip2-rs-0.1 + (package + (name "rust-bzip2-rs") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "bzip2-rs" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0dgp83kixqrqj6q6574qr5zsfpbsiiwhqs3krhvsn4f8wkkmksxy")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("nightly = .*") "")))))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-crc32fast" ,rust-crc32fast-1) + ("rust-tinyvec" ,rust-tinyvec-1) + ("rust-rayon-core" ,rust-rayon-core-1)) + #:cargo-development-inputs + (("rust-bzip2" ,rust-bzip2-0.4) + ("rust-criterion" ,rust-criterion-0.3) + ("rust-pretty_assertions" ,rust-pretty-assertions-0.6)))) + (home-page "https://github.com/paolobarbolini/bzip2-rs") + (synopsis "Pure Rust bzip2 decompressor") + (description "Pure Rust 100% safe bzip2 decompressor.") + (license (list license:expat license:asl2.0)))) + (define-public rust-bzip2-sys-0.1 (package (name "rust-bzip2-sys")