From patchwork Sun Apr 28 18:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 63559 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 A9D7E27BBEB; Sun, 28 Apr 2024 19:59:36 +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 8C1CC27BBE2 for ; Sun, 28 Apr 2024 19:59:34 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s19je-0002jb-RY; Sun, 28 Apr 2024 14:58:50 -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 1s19jc-0002h1-Tq for guix-patches@gnu.org; Sun, 28 Apr 2024 14:58:49 -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 1s19jc-0006cU-Ju for guix-patches@gnu.org; Sun, 28 Apr 2024 14:58:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s19jw-0005rk-3v; Sun, 28 Apr 2024 14:59:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH rust-team v2 028/117] gnu: Add rust-konst-0.3. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sun, 28 Apr 2024 18:59:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69257@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69257-submit@debbugs.gnu.org id=B69257.171433070422237 (code B ref 69257); Sun, 28 Apr 2024 18:59:08 +0000 Received: (at 69257) by debbugs.gnu.org; 28 Apr 2024 18:58:24 +0000 Received: from localhost ([127.0.0.1]:51914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s19jD-0005mV-F7 for submit@debbugs.gnu.org; Sun, 28 Apr 2024 14:58:23 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:56127 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s19iZ-0005fK-3F for 69257@debbugs.gnu.org; Sun, 28 Apr 2024 14:57:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1714330632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dEQhNt1wugl5vMmLAPldArqOwqPEuYkUXJdi/NODQDE=; b=rkwXtJBOi8uW3TTLaVjpWbdSceZ8JJphxPFhFeOUGhNQAnZNagaI/DqxE3rgG92Ym0U/sv ROpApbx/qb3laIaH18hWrcL8dgepDRRhzr54N8GO4oK4W3yoQfQMMTR1mm/gY79j3MS8Cu 86CaOq7Uj4LDg0aX17mWZ/i8LxM5OWf7TBXTbQUNIH2Fli8wR1JRJJmoeK/IwrFODA4eBE JbYmTzPhhdQJYaTwb5qeUjTzvCsHcHIFZx2vVksvIWurQNDY7royeUqXaqIYUwcyarqJQW Hp099bU2zBX3WHDYeHr/kzxy5Qyk23N7+ojWVvDfAyIkcBuHdxgt/nO4fclz8A== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 4bdd7dad (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <69257@debbugs.gnu.org>; Sun, 28 Apr 2024 18:57:12 +0000 (UTC) Date: Sun, 28 Apr 2024 20:54:54 +0200 Message-ID: <88ba52bf51c2b07b7d8b870bcded3450d9c6fb6d.1714330021.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm 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-konst-0.3): Add variable. (rust-konst-0.2): Inherit from rust-konst-0.3. Change-Id: I74632d7cd34a03e28b6dfdc2a77f222338fea935 --- gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4493bb97b4..cab773860b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -36377,8 +36377,39 @@ (define-public rust-koibumi-base32-0.0.2 (description "This package provides a Base32 encoder/decoder library.") (license license:gpl3+))) +(define-public rust-konst-0.3 + (package + (name "rust-konst") + (version "0.3.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "konst" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1c7xjlryaac1j6ib30lq2hyi8g2zrdl17xjwia6ly9yl9662lwcd")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags `("--release" "--all-targets" "--" + "--skip=string::priv_string_tests::invalid_both" + "--skip=string::priv_string_tests::invalid_end" + "--skip=string::priv_string_tests::invalid_start") + #:cargo-inputs (("rust-const-panic" ,rust-const-panic-0.2) + ("rust-konst-kernel" ,rust-konst-kernel-0.3) + ("rust-konst-proc-macros" ,rust-konst-proc-macros-0.3) + ("rust-trybuild" ,rust-trybuild-1) + ("rust-typewit" ,rust-typewit-1)) + #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8)))) + (home-page "https://github.com/rodrimati1992/konst/") + (synopsis "Const std functions, compile-time comparison and parsing") + (description + "This package provides Const equivalents of std functions, compile- +time comparison, and parsing.") + (license license:zlib))) + (define-public rust-konst-0.2 (package + (inherit rust-konst-0.3) (name "rust-konst") (version "0.2.19") (source @@ -36388,18 +36419,11 @@ (define-public rust-konst-0.2 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1x3lxxk9vjaiiaabngv7ki2bv9xi36gnqzjzi0s8qfs8wq9hw3rk")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-konst-macro-rules" ,rust-konst-macro-rules-0.2) ("rust-konst-proc-macros" ,rust-konst-proc-macros-0.2) ("rust-trybuild" ,rust-trybuild-1)) - #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8)))) - (home-page "https://github.com/rodrimati1992/konst/") - (synopsis - "Const equivalents of std functions, compile-time comparison, and parsing") - (description - "Const equivalents of std functions, compile-time comparison, and parsing.") - (license license:zlib))) + #:cargo-development-inputs (("rust-rand" ,rust-rand-0.8)))))) (define-public rust-konst-kernel-0.3 (package