From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gIKfMNZsFWASEgAA0tVLHw (envelope-from ) for ; Sat, 30 Jan 2021 14:27:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gOOSLNZsFWDrcgAA1q6Kng (envelope-from ) for ; Sat, 30 Jan 2021 14:27:34 +0000 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 1FCAB9402C2 for ; Sat, 30 Jan 2021 14:27:34 +0000 (UTC) Received: from localhost ([::1]:35514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5rDp-0008Nj-35 for larch@yhetil.org; Sat, 30 Jan 2021 09:27:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5rDL-0008NN-Ga for guix-patches@gnu.org; Sat, 30 Jan 2021 09:27:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5rDK-0003Xi-KD for guix-patches@gnu.org; Sat, 30 Jan 2021 09:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5rDK-0007GJ-Hi for guix-patches@gnu.org; Sat, 30 Jan 2021 09:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46192] [PATCH 04/22] gnu: Add rust-enum-primitive-0.1. References: <20210130141347.olmrgflwxkhi2qrw@minitower> In-Reply-To: <20210130141347.olmrgflwxkhi2qrw@minitower> Resent-From: aecepoglu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Jan 2021 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46192 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46192@debbugs.gnu.org Received: via spool by 46192-submit@debbugs.gnu.org id=B46192.161201682027898 (code B ref 46192); Sat, 30 Jan 2021 14:27:02 +0000 Received: (at 46192) by debbugs.gnu.org; 30 Jan 2021 14:27:00 +0000 Received: from localhost ([127.0.0.1]:54217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5rDH-0007Ft-F6 for submit@debbugs.gnu.org; Sat, 30 Jan 2021 09:27:00 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5rDF-0007Fg-U8 for 46192@debbugs.gnu.org; Sat, 30 Jan 2021 09:26:58 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CE5535C00EE for <46192@debbugs.gnu.org>; Sat, 30 Jan 2021 09:26:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 30 Jan 2021 09:26:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:subject:message-id:mime-version:content-type; s= fm2; bh=Nkapd27AP71IaKKcy/WCFHnCSyB4QfX3JWfVrStS/LE=; b=ku7j9Wq7 roJTTvzq/xYs7IRqVGqNevIIr6KWvKDoCTVVRQJH4vS6XPfi1GxWvEC4ytuKgbb+ 1yKEe4m+UfW+lHuKsehf5qw0jsgCsgv8aeurTPF1ixu5Nm4N56QtTqVTu3wKeKZU vDfQ8O7cIuBrOdQJiNknJjywynYeXLrg8pPuOZEysuLd5LKChsYnFeOuzIb5rDk9 ZSdCoBrnGPTQ4zdlQHkRyEgN29YTddvrUAcf09w2aYET6nXHJEXtkVPS9uHJuBws Fzb0TCs93qtPGDb7aq4eBmciUkdm9tHmuKCLJbaqFM2JJPYPSFejmTN1Y/PD8toT b0Ct68scFeIFNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=Nkapd27AP71IaKKcy/WCFHnCSyB4Q fX3JWfVrStS/LE=; b=gEHvjE/HxqjWjoWdT9ZwztBPybiZjjGba6Gk261z/QlkC oNjtDvtBReVBweVgwEVpln+38HyuH+OoF8P31+wRo708PfGHtHpfkr2qI6TxTvM9 UtAD6eXE8yyfuA8/39IkgDSXZ8iGZu/P05okmbLvwrnBDiIi0V8+UTkg2H4aXU0g qSyTPXt1e63e1IRN6sIQ31vvo4iPwZBEyNSUDptDeA77dGPzNx/v8h0st4eDjptJ 4W3NW47RU/SAJCRbYpcpQZcNs65zKIXpF0yXeLXGgMPqMDDZ0LCqEyger1Dk+S18 AgyLqOqHzxvYWjlp/Vfkjzz1U+gat0UKOAjyh5SoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeggdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertddttd dvnecuhfhrohhmpegrvggtvghpohhglhhuuceorggvtggvphhoghhluhesfhgrshhtmhgr ihhlrdhfmheqnecuggftrfgrthhtvghrnhephefgvddvgfduvdfhgfegvdekueduveffle eifefhtdduledvkedtuedvueefgfelnecuffhomhgrihhnpehgihhthhhusgdrtghomhen ucfkphepudejiedrgedurddvledrvdejnecuvehluhhsthgvrhfuihiivgepudenucfrrg hrrghmpehmrghilhhfrhhomheprggvtggvphhoghhluhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from localhost (unknown [176.41.29.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D433240057 for <46192@debbugs.gnu.org>; Sat, 30 Jan 2021 09:26:52 -0500 (EST) Date: Sat, 30 Jan 2021 17:29:15 +0300 From: aecepoglu Message-ID: <20210130142915.gkrg2vo77chyqcyn@minitower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.fm header.s=fm2 header.b=ku7j9Wq7; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="gEHvjE/H"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.fm (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1FCAB9402C2 X-Spam-Score: -0.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: kuuxx8FNLtJG * gnu/packages/crates-io.scm (rust-enum-primitive-0.1): New variable. --- gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d863ef1ad6..b6d882e777 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10731,6 +10731,33 @@ accessor functions on enums.") ("rust-quote" ,rust-quote-0.6) ("rust-syn" ,rust-syn-0.15)))))) +(define-public rust-enum-primitive-0.1 + (package + (name "rust-enum-primitive") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "enum_primitive" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "100ip2p3w1rq0clca2ai5shhvpxfipnsjncj0f9ralad5w4m2idy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-num-traits" ,rust-num-traits-0.1)))) + (home-page + "https://github.com/andersk/enum_primitive-rs") + (synopsis + "Macro to generate @code{num::FromPrimitive} instances for enum that works +in Rust 1.0") + (description + "Macro named @code{enum_from_primitive!} to generate +@code{num::FromPrimitive} instances for enum that works in Rust 1.0") + (license license:expat))) + (define-public rust-enum-to-u8-slice-derive-0.1 (package (name "rust-enum-to-u8-slice-derive") -- 2.30.0