Subject: [PATCH 2/7] gnu: Add rust-mimalloc-0.1.

From: muradm <[email-masked]>
Date: Sun, 10 Mar 2024 10:59:52 +0300

* gnu/packages/crates-io.scm (rust-mimalloc-0.1): New variable.

Change-Id: I87a05568b40145233acddf07e6dcfd4b5b8a7766
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1e828257b6..09625aa52f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37806,6 +37806,25 @@ (define-public rust-migrations-macros-1
 embedded migrations.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-mimalloc-0.1
+  (package
+    (name "rust-mimalloc")
+    (version "0.1.39")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mimalloc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "176w9gf5qxs07kd2q39f0k25rzmp4kyx5r13wc8sk052bqmr40gs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libmimalloc-sys" ,rust-libmimalloc-sys-0.1))))
+    (home-page "https://github.com/purpleprotocol/mimalloc_rust")
+    (synopsis "Performance and security oriented drop-in allocator")
+    (description "Performance and security oriented drop-in allocator")
+    (license license:expat)))
+
 (define-public rust-mimalloc-rust-0.1
   (package
     (name "rust-mimalloc-rust")
-- 
2.41.0