From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mHjFFT/hFWBdVAAA0tVLHw (envelope-from ) for ; Sat, 30 Jan 2021 22:44:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ADWgET/hFWC1bgAAbx9fmQ (envelope-from ) for ; Sat, 30 Jan 2021 22:44:15 +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 0E6EB9404C4 for ; Sat, 30 Jan 2021 22:44:15 +0000 (UTC) Received: from localhost ([::1]:51106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5yyT-0005E1-PQ for larch@yhetil.org; Sat, 30 Jan 2021 17:44:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5yvW-00028K-NW for guix-patches@gnu.org; Sat, 30 Jan 2021 17:41:12 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5yvP-0003f8-IB for guix-patches@gnu.org; Sat, 30 Jan 2021 17:41:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5yvP-0000jV-G3 for guix-patches@gnu.org; Sat, 30 Jan 2021 17:41:03 -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 22:41:03 +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.16120464212720 (code B ref 46192); Sat, 30 Jan 2021 22:41:03 +0000 Received: (at 46192) by debbugs.gnu.org; 30 Jan 2021 22:40:21 +0000 Received: from localhost ([127.0.0.1]:55984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5yuj-0000ho-8o for submit@debbugs.gnu.org; Sat, 30 Jan 2021 17:40:21 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:40521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5yuh-0000hO-Jp for 46192@debbugs.gnu.org; Sat, 30 Jan 2021 17:40:20 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 15258C5E for <46192@debbugs.gnu.org>; Sat, 30 Jan 2021 17:40:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 30 Jan 2021 17:40:14 -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=xfJT5YwuGC0VyvZUACHvu8Dpl5ys65jigrmw9D3atcs=; b=nTY5f7Zp pVt0n9OdiJgnj5jZlBWNh5CNorOPh98TVHUT9+a9ll/p+ww2qUl6+opYa2VGKJj3 9W/tdVxIH9Wvm5ZVrE7nH+2b/ENM9WsE0bVagLPhOQ0pHUNEj+e/QLLDIy200iyf n5y5kDbFu5IRcUnaG3czagAs/4MEFLo3CC+LpRy3Wilx1tRe4pLy3pDp3kJphgU4 RJRK0FNrRTSRBOjhWshSs6LPqZhtjL+n7tMFKiE7biqyjhDtvekfiPC2ckdaQ+nV iI9wyg7i9SB+dnMtHcakEQMmaYrMlRHZB9wi5oeWYcrMMcRQF+YtrWklDkspxkIK sKaSS82zuV0xng== 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=xfJT5YwuGC0VyvZUACHvu8Dpl5ys6 5jigrmw9D3atcs=; b=XfCtlWnBu6zfvPlWhkl3d6pR0gyk0s5MfssKR57EREO5c t15dIJloLnCOnr/CfNAdtEp8RqUo1ja3p5e7agiCLXM7aAaj3lvFS03SgB3J51h4 ZD/VjlqXnJeRLC6VR3CMLgWrdWJeqKr4po3ULZ5gza+ZxWhBB1c91Zfbyaby5OMs RXylIWzoKM1DTzAZJCES04tXTyXS6cfVAbo9GSrdKJ/mrQ9BpZUGA+SRVQoO+dGL 9r2VF4OmOmmoWM4Zez2FodmGjCHNfrxr5vnfwXHmtAyLjwA4hoF4yAY3TL0P1oWx t5JYhaWBrMGTsgO7ceulYtLVoXDLg05fj1H5Qsu/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeggdduieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomheprggvtggvphhoghhluhcuoegrvggtvghpohhglhhusehfrghsthhm rghilhdrfhhmqeenucggtffrrghtthgvrhhnpeehgfdvvdfguddvhffggedvkeeuudevff elieefhfdtudelvdektdeuvdeufefgleenucffohhmrghinhepghhithhhuhgsrdgtohhm necukfhppedujeeirdeguddrvdelrddvjeenucevlhhushhtvghrufhiiigvpeefnecurf grrhgrmhepmhgrihhlfhhrohhmpegrvggtvghpohhglhhusehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from localhost (unknown [176.41.29.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 4B53A240057 for <46192@debbugs.gnu.org>; Sat, 30 Jan 2021 17:40:13 -0500 (EST) Date: Sun, 31 Jan 2021 01:42:36 +0300 From: aecepoglu Message-ID: <20210130224236.ewbjd473ihvx5ovw@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=nTY5f7Zp; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=XfCtlWnB; 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: 0E6EB9404C4 X-Spam-Score: -0.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: SzWqMfoODcuw * 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 6988b999b8..57af1dc2ab 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 + "This package provides a 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