summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-09-16 17:36:11 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-10-12 11:41:43 +0530
commitce7520db90d86e3db9fe4f3fa267e5586a42ab20 (patch)
tree9fe0b911ad3f2e3bd8d093bf3e0676b4709b3172
parent385ae0cf4199e5060254688bb08750101505dd8b (diff)
downloadguix-ce7520db90d86e3db9fe4f3fa267e5586a42ab20.tar.gz
gnu: Add rust-alloc-no-stdlib-2.
* gnu/packages/crates-io.scm (rust-alloc-no-stdlib-2,
rust-alloc-no-stdlib-2.0): New variables.
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7fd1752174..791c2d87c7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -390,6 +390,30 @@ code that is generic with regard to the algebraic entity types.")
 @code{alga} crate.")
     (license license:asl2.0)))
 
+(define-public rust-alloc-no-stdlib-2
+  (package
+    (name "rust-alloc-no-stdlib")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "alloc-no-stdlib" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "19lhmi73fii1b6vrzh23vvp5yjqm33cb94h9yz17pn25b51yr4ji"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/dropbox/rust-alloc-no-stdlib")
+    (synopsis "Dynamic allocator that may be used with or without the stdlib")
+    (description "This package provides a dynamic allocator that may be used
+with or without the stdlib.  This allows a package with nostd to allocate
+memory dynamically and be used either with a custom allocator, items on the
+stack, or by a package that wishes to simply use Box<>.  It also provides
+options to use calloc or a mutable global variable for pre-zeroed memory.")
+    (license license:bsd-3)))
+
+(define-public rust-alloc-no-stdlib-2.0 rust-alloc-no-stdlib-2)
+
 (define-public rust-android-glue-0.2
   (package
     (name "rust-android-glue")