From patchwork Sun Oct 15 16:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan X-Patchwork-Id: 54838 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 B8AA427BBE9; Sun, 15 Oct 2023 17:07:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 442F827BBE2 for ; Sun, 15 Oct 2023 17:07:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs3eY-0001ab-IT; Sun, 15 Oct 2023 12:07:42 -0400 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 1qs3eV-0001aS-Bk for guix-patches@gnu.org; Sun, 15 Oct 2023 12:07:39 -0400 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 1qs3eU-0002H1-6m for guix-patches@gnu.org; Sun, 15 Oct 2023 12:07:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qs3es-0003HX-Dd for guix-patches@gnu.org; Sun, 15 Oct 2023 12:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66563] [PATCH] gnu: Add rust-bzip2-rs Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Oct 2023 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66563 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66563@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169738607212594 (code B ref -1); Sun, 15 Oct 2023 16:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Oct 2023 16:07:52 +0000 Received: from localhost ([127.0.0.1]:53987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs3eg-0003H0-Mb for submit@debbugs.gnu.org; Sun, 15 Oct 2023 12:07:51 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs3ea-0003Ga-Fx for submit@debbugs.gnu.org; Sun, 15 Oct 2023 12:07:48 -0400 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 1qs3e6-0001Zd-HT for guix-patches@gnu.org; Sun, 15 Oct 2023 12:07:14 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qs3dz-0002Dz-DV for guix-patches@gnu.org; Sun, 15 Oct 2023 12:07:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1697386023; bh=OcN+UxgDrT5pZUFkvJWzpDTCqdll9xgrhRLB9c6CyXw=; h=Message-ID:Date:User-Agent:From:Subject:To:Content-Language: Content-Type:From; b=GUW6ShQbxkrwmx0YMY51zsm3ergc1gCr/kaifiPW9CVSsfyfzv/vftu5ciTtOBraq +zdst9P1PfAnzPtreU2vbPH8P6foF2MsW/NwIPFxpuSpIv+1qhRv0fVIvfIaviMbkN DSyXJCbrpX4vi+XkH9N/8LVPrIpLQhqDhZsQ4Z0s= Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr4.vodafonemail.de (Postfix) with ESMTPS id 4S7lVv5Tm5z1y2d; Sun, 15 Oct 2023 16:07:03 +0000 (UTC) Received: from [10.11.12.146] (aftr-62-216-210-228.dynamic.mnet-online.de [62.216.210.228]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4S7lVm3B94z9s9T; Sun, 15 Oct 2023 16:06:53 +0000 (UTC) Message-ID: <39753ebe-d35d-005e-670a-d38a40dfb5b7@vodafonemail.de> Date: Sun, 15 Oct 2023 18:06:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US X-purgate-type: clean X-purgate: clean X-purgate-size: 4404 X-purgate-ID: 155817::1697386019-4B7F9816-89FA3E24/0/0 Received-SPF: pass client-ip=145.253.228.164; envelope-from=stefan-guix@vodafonemail.de; helo=mr4.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Stefan X-ACL-Warn: , Stefan via Guix-patches X-Patchwork-Original-From: Stefan via Guix-patches via From: Stefan 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 * gnu/packages/crates-io.scm (rust-bzip2-rs-0.1): New variable. * gnu/packages/crates-io.scm (rust-bytesize-1): Moved to group bzip2 related packages. --- gnu/packages/crates-io.scm | 80 +++++++++++++++++++++++++++----------- 1 file changed, 57 insertions(+), 23 deletions(-) base-commit: a0d2ecde943bd1854ddbb7c0cad35a1fc64dc5ab diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 80fb92ec82..0271dba14a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2022 Paul A. Patience ;;; Copyright © 2022 Paul Alesius ;;; Copyright © 2023 Arnav Andrew Jose +;;; Copyright © 2023 Stefan ;;; ;;; This file is part of GNU Guix. ;;; @@ -9932,6 +9933,29 @@ (define-public rust-bytestring-0.1 "This package provides a UTF-8 encoded string with Bytes as a storage.") (license (list license:expat license:asl2.0)))) +(define-public rust-bytesize-1 + (package + (name "rust-bytesize") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bytesize" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0w7wmmbcirxp5isza0i1lxq5d7r7f0z1pxbxl5f6s1n5m8vfqn3c")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-serde" ,rust-serde-1)))) + (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.4 (package (name "rust-bzip2") @@ -9965,29 +9989,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.1.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "bytesize" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0w7wmmbcirxp5isza0i1lxq5d7r7f0z1pxbxl5f6s1n5m8vfqn3c")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-serde" ,rust-serde-1)))) - (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) @@ -10015,6 +10016,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")