From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YMltDgdP2GEgxQAAgWs5BA (envelope-from ) for ; Fri, 07 Jan 2022 15:32:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SNY/CwdP2GF2LAAAauVa8A (envelope-from ) for ; Fri, 07 Jan 2022 15:32:39 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D6ADDFF41 for ; Fri, 7 Jan 2022 15:32:38 +0100 (CET) Received: from localhost ([::1]:36394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5qIH-00039T-Jy for larch@yhetil.org; Fri, 07 Jan 2022 09:32:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5qHi-00036N-T6 for guix-patches@gnu.org; Fri, 07 Jan 2022 09:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5qHi-00073m-JS for guix-patches@gnu.org; Fri, 07 Jan 2022 09:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5qHi-0006nb-FF for guix-patches@gnu.org; Fri, 07 Jan 2022 09:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53114] [PATCH 39/41] gnu: rust-rbw: adding rust-paw Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Jan 2022 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53114@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164156589726088 (code B ref -1); Fri, 07 Jan 2022 14:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2022 14:31:37 +0000 Received: from localhost ([127.0.0.1]:43584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5qH4-0006mJ-A1 for submit@debbugs.gnu.org; Fri, 07 Jan 2022 09:31:37 -0500 Received: from lists.gnu.org ([209.51.188.17]:37128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5qH2-0006m4-Dt for submit@debbugs.gnu.org; Fri, 07 Jan 2022 09:31:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5qH2-0002Sg-7y for guix-patches@gnu.org; Fri, 07 Jan 2022 09:31:20 -0500 Received: from 12.mo582.mail-out.ovh.net ([178.32.125.228]:37411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5qGz-0006oP-En for guix-patches@gnu.org; Fri, 07 Jan 2022 09:31:19 -0500 Received: from player787.ha.ovh.net (unknown [10.110.171.96]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 1EB1224D32 for ; Fri, 7 Jan 2022 14:31:16 +0000 (UTC) Received: from ngraves.fr (201.238.0.109.rev.sfr.net [109.0.238.201]) (Authenticated sender: ngraves@ngraves.fr) by player787.ha.ovh.net (Postfix) with ESMTPSA id CC53826448C50 for ; Fri, 7 Jan 2022 14:31:15 +0000 (UTC) X-OVh-ClientIp: 109.0.238.201 User-agent: mu4e 1.6.10; emacs 28.0.50 Date: Fri, 07 Jan 2022 15:30:15 +0100 Message-ID: <877dbbk47g.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0040-rust-rbw-dependencies-adding-rust-paw.patch X-Ovh-Tracer-Id: 5670876358178956026 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvuddrudegvddggeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpegfhffvufffkfggtgguseertdertddtredtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepudejteehgeeiffelveetueeguefgtdeikeefjeevffdtvddtgfffjedukeeuhedunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpuddtledrtddrvdefkedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeekjedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrgh Received-SPF: pass client-ip=178.32.125.228; envelope-from=ngraves@ngraves.fr; helo=12.mo582.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641565959; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=IcEBEZ9e9rjnL0AY2PFaWYiWBiyziiuVnyHqlRxjukU=; b=q4s7ufaije3ok6su8ec0hXGxXvhHyk441IM34bjLbqnDl3nto9+3exZAL0aNovvgHa/Egk b9Hc7zPeBZ1CwjRTFWVoLlABu8xMbYA2PYPSAqcjL1SKBrjtcPcGrIZcgyV5B7yCHCZd/w JqdZ0bwrET1xlUTkzZqP/swIjUaD/Jl7ZYWN8bZk3AEe4sI+Fm9GSh9ElEsC8e3EndSiPj gTYmLSIiJhomOYcpYtxYvLVlFQhPb3zowETMvn+8hdhgmLURbHfo97daQpwZLPuaNMOsdA Y0zw7KaGrpW4TiwujNB/OC55LzWQ0avmsechavXVZZhzviOorN9O+Ghatvn/wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641565959; a=rsa-sha256; cv=none; b=KUoRd9WUhXBQE8NYp8GZo1RDw2U0j3GcqLDhCDivV1zHRKGg8dOA2cZezcyhhPneH+VIoy zGGuOPv8PRv12ZlM7hFT7xAlKYUmWYi9WPzKWLrgBh8V1d0q3LISeEOfWNRG3WMJVZuTDU HDnZYFXD7UQXHmbTOe1esSBRQN1kw3WGN0qmw1lgWQTSqqxHXvfvYxpNxTBQt95c/QVxQR uYmhRHab1Sy2ywyXdplJIiYntlTvBeiVDwY/NhV9fStRdoc1qqH/KPGwdr7tnmnGSSGvM+ MoupJXRM4WOpuQXcK72UPTW4La319uHb1zcxWwGiCRw/1sW1/AF+RxdG4MY09A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.10 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D6ADDFF41 X-Spam-Score: -5.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: oTas/ZpHdszh >From aaa870f575ab13e0b58754c0392c2cd001c359ab Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 7 Jan 2022 13:52:16 +0100 Subject: [PATCH 40/42] rust-rbw dependencies : adding rust-paw --- gnu/packages/crates-io.scm | 122 ++++++++++++++++++++++++++++++++----- 1 file changed, 108 insertions(+), 14 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 50d5c215b4..3672b63475 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37268,30 +37268,124 @@ (define-public rust-pathdiff-0.1 (base32 "0cfg3isnx6mf3wbi7rsg4nmvywby40sbcs589n20fgi09l4p1gx3")))))) -(define-public rust-pbkdf2-0.10 +(define-public rust-paw-1 (package - (name "rust-pbkdf2") - (version "0.10.0") + (name "rust-paw") + (version "1.0.0") (source (origin (method url-fetch) - (uri (crate-uri "pbkdf2" version)) + (uri (crate-uri "paw" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "0d3l06x5mg96njxfsksjwl6440alf72qh4rwrpnq4fwmrz1qqqm4")))) + "1sc481y42rb08hmww525m4539ppl8k0w14kwxp13vg2dasdzrh09")))) (build-system cargo-build-system) (arguments - `(#:skip-build? - #t - #:cargo-inputs - (("rust-digest" ,rust-digest-0.10) - ("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.3) - ("rust-rayon" ,rust-rayon-1) - ("rust-sha-1" ,rust-sha-1-0.10) - ("rust-sha2" ,rust-sha2-0.10)))) + `(#:cargo-inputs + (("rust-paw-attributes" ,rust-paw-attributes-1) + ("rust-paw-raw" ,rust-paw-raw-1)) + #:cargo-development-inputs + (("rust-paw-structopt" ,rust-paw-structopt-1) + ("rust-runtime" ,rust-runtime-0.3) + ("rust-structopt" ,rust-structopt-0.2)) + #:tests? #f)) ; FIXME + (home-page "https://github.com/rust-cli/paw") + (synopsis "CLI argument parser") + (description "CLI argument parser. Paw defines a trait, a proc macro, and +an example implementation that when combined allow you to pass fully parsed +arguments to main. It avoids the need to remember which methods to call in order +to parse arguments in the CLI.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-paw-attributes-1 + (package + (name "rust-paw-attributes") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "paw-attributes" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0fda1v7y5pfmg8d2v7m0pyvif6c44qjz914jjn718pdyclrmhd8g")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/rust-cli/paw") + (synopsis "Proc Macro attributes for the Paw crate") + (description "Proc Macro attributes for the Paw crate.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-paw-raw-1 + (package + (name "rust-paw-raw") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "paw-raw" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1wk76ipp34gjh42vivmgdkb2rgr26gwhn34gk7z5l378ixk5j2vz")))) + (build-system cargo-build-system) + (home-page "https://github.com/rust-cli/paw") + (synopsis "Traits to implement custom Paw implementations") + (description "Traits to implement custom Paw implementations") + (license (list license:expat license:asl2.0)))) + + +(define-public rust-paw-structopt-1 + (package + (name "rust-paw-structopt") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "paw-structopt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1iwg83xqjpfgpy8wrq173cy7zgkyxfryd230sh34f5qsjdx7zap4")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-0.4) + ("rust-quote" ,rust-quote-0.6) + ("rust-structopt" ,rust-structopt-0.2) + ("rust-syn" ,rust-syn-0.15)))) + (home-page "https://github.com/rust-cli/paw") + (synopsis "Structopt support for the Paw crate") + (description "Structopt support for the Paw crate.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-pbkdf2-0.10 + (package + (name "rust-pbkdf2") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pbkdf2" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0d3l06x5mg96njxfsksjwl6440alf72qh4rwrpnq4fwmrz1qqqm4")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? + #t + #:cargo-inputs + (("rust-digest" ,rust-digest-0.10) + ("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-sha-1" ,rust-sha-1-0.10) + ("rust-sha2" ,rust-sha2-0.10)))) (home-page "https://github.com/RustCrypto/password-hashing") (synopsis "Generic implementation of PBKDF2") (description "This package contains a collection of password hashing -- 2.34.0