diff mbox series

[bug#69697,2/7] gnu: Add rust-mimalloc-0.1.

Message ID 50a3bdf1e6ab302f9ae0006c37572f9576225a0e.1710055564.git.mail@muradm.net
State New
Headers show
Series Add difft program. | expand

Commit Message

muradm March 10, 2024, 7:30 a.m. UTC
* 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(+)

Comments

muradm March 10, 2024, 7:54 a.m. UTC | #1
close 69697

muradm <mail@muradm.net> writes:

> * 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")
diff mbox series

Patch

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")