From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 42/86] gnu: Add rust-heapsize. Date: Tue, 3 Jan 2017 23:35:58 +0000 Message-ID: <20170103233642.3181-43-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYeQ-0003jG-HT 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 1cOYeO-0001WX-G1 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:54 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYeO-0001WA-8T for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:52 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYeN-0001ru-2t for guix-devel@gnu.org; Wed, 04 Jan 2017 00:37:51 +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-heapsize): New variable. --- gnu/packages/rust.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 6f02eb7ca..e322fa5e9 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1196,3 +1196,24 @@ 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)))) + +(define-public rust-heapsize + (package + (name "rust-heapsize") + (version "0.3.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "heapsize" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0j9m3cw91apd2shfqv3xk0ih9sj2dv04s4v6jl8ak5c4fnaf304c")))) + (build-system cargo-build-system) + (home-page "https://github.com/servo/heapsize") + (synopsis "Measure the total runtime size of an object on the heap") + (description + "@code{heapsize} can be used in support of measuring heap +allocations in Rust programs.") + (license license:mpl2.0))) -- 2.11.0