From patchwork Wed Nov 6 20:50:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: paul X-Patchwork-Id: 33071 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 DAB6927BBEA; Wed, 6 Nov 2024 20:52:34 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 884C427BBE2 for ; Wed, 6 Nov 2024 20:52:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8n0Z-0001tg-9n; Wed, 06 Nov 2024 15:52:07 -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 1t8n0W-0001s4-VG for guix-patches@gnu.org; Wed, 06 Nov 2024 15:52:05 -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 1t8n0W-0003JW-Ka for guix-patches@gnu.org; Wed, 06 Nov 2024 15:52:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=d7GmJtyciCB2f96shv7K55jA5R53qRbE1d78pfDayCM=; b=vuiEHEVFePylZHWv2V1WQJpUBF3C4AqhyBU7g9W5gg7AMYUoTdir0vtMW0MQdJAgrB3RMUh5+0Ld55nnT19ws3Dt4LPAztiEIfNqiYjdtC6pCGxYat8VlM0TKpvopQFaI0jeW3CaH2nbevPlaRFcE2AkNtfXHjCJACgf2l+YLz4m8x8vU5fEosZW5UTF5M/aHAx5sp5SbX8vDdmNeUjsKEKzw5IUIO0zm1yPkSNd/qO0AS76Do1iiP59aGdMauxE29Up8yellLX0xbYtVUJObd3JCu5BUw3d6hAkGY+UuDQwlowZ8L/QMl5oOzIktKk1EpYLEgeflz5Q5qazN3EcYg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8n0W-0004ER-Fj; Wed, 06 Nov 2024 15:52:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74234] [PATCH rust-team 11/20] gnu: Add rust-enum-ordinalize-derive-4. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Wed, 06 Nov 2024 20:52:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74234 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74234@debbugs.gnu.org Cc: Giacomo Leidi , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 74234-submit@debbugs.gnu.org id=B74234.173092630416068 (code B ref 74234); Wed, 06 Nov 2024 20:52:04 +0000 Received: (at 74234) by debbugs.gnu.org; 6 Nov 2024 20:51:44 +0000 Received: from localhost ([127.0.0.1]:46140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8n0B-0004Ay-VW for submit@debbugs.gnu.org; Wed, 06 Nov 2024 15:51:44 -0500 Received: from confino.investici.org ([93.190.126.19]:54281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8n07-00049h-TV for 74234@debbugs.gnu.org; Wed, 06 Nov 2024 15:51:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1730926299; bh=d7GmJtyciCB2f96shv7K55jA5R53qRbE1d78pfDayCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nMPQVp3Pj5MZk6Vi8lHPyRb09Y8NytwBu3j5rdvkQW3DMHVlOAdNkiGBPUBngEteC 3N/kHuwb6EYKV4hK/z1pexVpQTxcbFFQZ+2sSTQztrj8qewclp6Sy0sFPRuPrv07X+ XzKxblCUiCmrVyTWA3jmXdH0g40l8Ki/lNNIiW+M= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4XkHSC5NmDz10vX; Wed, 6 Nov 2024 20:51:39 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4XkHSB3b11z10vZ; Wed, 6 Nov 2024 20:51:38 +0000 (UTC) Date: Wed, 6 Nov 2024 21:50:48 +0100 Message-ID: <9cc3147dc115ce1c415f13e1edc4d8c9ec8af9e6.1730926257.git.goodoldpaul@autistici.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <7b21dfae877c918e169231417b48e0dd026563b2.1730926257.git.goodoldpaul@autistici.org> References: <7b21dfae877c918e169231417b48e0dd026563b2.1730926257.git.goodoldpaul@autistici.org> 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: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: paul 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-enum-ordinalize-derive-4): New variable. Change-Id: I5f56252a4eb4626ba6d2cece964c975e341a7280 --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4d89af711f..0ef313a442 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -24885,6 +24885,31 @@ (define-public rust-enumflags2-derive-0.6 ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1)))))) +(define-public rust-enum-ordinalize-derive-4 + (package + (name "rust-enum-ordinalize-derive") + (version "4.3.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "enum-ordinalize-derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zy53fabazimwv5cl0366k834ybixzl84lxj9mfavbnlfn532a0d")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page "https://magiclen.org/enum-ordinalize") + (synopsis + "Macro that enables construction of enums from an ordinal value") + (description + "This crate provides a procedural macro that enables enums to not only +obtain the ordinal values of their variants but also allows for the +construction of enums from an ordinal value.") + (license license:expat))) + (define-public rust-enumset-1 (package (name "rust-enumset")