From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 41/86] gnu: Add rust-fnv. Date: Tue, 3 Jan 2017 23:35:57 +0000 Message-ID: <20170103233642.3181-42-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYeR-0003k4-M7 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYeQ-0001YD-NW for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:55 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYeQ-0001XG-Gp for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:54 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYeP-0001zV-B0 for guix-devel@gnu.org; Wed, 04 Jan 2017 00:37:53 +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-fnv): New variable. --- gnu/packages/rust.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 047f6d21e..6f02eb7ca 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1170,3 +1170,29 @@ clippy's procedural macro checks.") Unicode strings, including Canonical and Compatible Decomposition and Recomposition, as described in Unicode Standard Annex #15.") (license (list license:expat license:asl2.0)))) + +(define-public rust-fnv + (package + (name "rust-fnv") + (version "1.0.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "fnv" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0i73zsc7q1hapamwfv793k3xhan11jb9ylkgypx88a0y5y289i3c")))) + (build-system cargo-build-system) + (home-page "https://github.com/servo/rust-fnv") + (synopsis "Implementation of the Fowler–Noll–Vo hash function") + (description + "The FNV hash function is a custom Hasher implementation that is +more efficient for smaller hash keys. + +The Rust FAQ states that while the default Hasher implementation, +SipHash, is good in many cases, it is notably slower than other +algorithms with short keys, such as when you have a map of integers to +other values. In cases like these, FNV is demonstrably faster.") + (license (list license:expat license:asl2.0)))) -- 2.11.0