summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-29 13:13:04 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-29 15:05:23 +0300
commitc08f789d4df408bc299e0847e0c83bcfab7f6879 (patch)
treea307e9c79dcfe134e56c96d3424ec290842fd367 /gnu
parent5913e06a75b06f0cb07b4309f0dd0cd19c84f320 (diff)
gnu: Add rust-heapsize.
* gnu/packages/crates-io.scm (rust-heapsize): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cd8a1b062ae..f5b03b1df65 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -499,6 +499,32 @@ featuring zero allocations, composability, and iterator-like interfaces.")
499 (license (list license:asl2.0 499 (license (list license:asl2.0
500 license:expat)))) 500 license:expat))))
501 501
502(define-public rust-heapsize
503 (package
504 (name "rust-heapsize")
505 (version "0.4.2")
506 (source
507 (origin
508 (method url-fetch)
509 (uri (crate-uri "heapsize" version))
510 (file-name (string-append name "-" version ".tar.gz"))
511 (sha256
512 (base32
513 "0q94q9ppqjgrw71swiyia4hgby2cz6dldp7ij57nkvhd6zmfcy8n"))))
514 (build-system cargo-build-system)
515 (arguments
516 `(#:cargo-inputs (("rust-winapi" ,rust-winapi))
517 ;; Tests assume rust is built with jemalloc.
518 ;; https://github.com/servo/heapsize/issues/74
519 #:cargo-test-flags '("--features" "flexible-tests")))
520 (home-page "https://github.com/servo/heapsize")
521 (synopsis "Measure the total runtime size of an object on the heap")
522 (description
523 "Infrastructure for measuring the total runtime size of an object on the
524heap.")
525 (license (list license:asl2.0
526 license:expat))))
527
502(define-public rust-hex 528(define-public rust-hex
503 (package 529 (package
504 (name "rust-hex") 530 (name "rust-hex")