From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 20/86] gnu: Add rust-cfg-if. Date: Tue, 3 Jan 2017 23:35:36 +0000 Message-ID: <20170103233642.3181-21-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYdt-00034b-LX for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYdq-000192-S3 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:21 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYdq-00018U-KG for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:18 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYdp-0000CH-Ec for guix-devel@gnu.org; Wed, 04 Jan 2017 00:37:17 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/rust.scm (rust-cfg-if): New variable. --- gnu/packages/rust.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 910f296b6..365ab4ed4 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -682,3 +682,26 @@ per-object thread-local storage, unlike the standard library's @code{thread_local!} macro which only allows static thread-local storage.") (license (list license:asl2.0 license:expat)))) + +(define-public rust-cfg-if + (package + (name "rust-cfg-if") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "cfg-if" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "137qikjcal4h75frzcn6mknygqk8vy5bva7w851aydb5gc6pc7ny")))) + (build-system cargo-build-system) + (home-page "https://github.com/alexcrichton/cfg-if") + (synopsis + "Ergonomically define an item depending on a large number of @code{#[cfg]} parameters") + (description + "Cfg-if provides a macro to ergonomically define an item depending +on a large number of @code{#[cfg]} parameters. Structured like an +if-else chain, the first matching branch is the item that gets emitted.") + (license (list license:expat license:asl2.0)))) -- 2.11.0