[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
265/373: gnu: Add rust-jemallocator-0.5.
From: |
guix-commits |
Subject: |
265/373: gnu: Add rust-jemallocator-0.5. |
Date: |
Sun, 16 Apr 2023 07:11:20 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 4e2961c7cddeee65a25702060997258a2ab69415
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:33:06 2023 +0200
gnu: Add rust-jemallocator-0.5.
* gnu/packages/crates-io.scm (rust-jemallocator-0.5): New variable.
(rust-jemallocator-0.3): Inherit from rust-jemallocator-0.5.
---
gnu/packages/crates-io.scm | 44 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 37 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a174283dbd..77540dbc64 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30027,8 +30027,44 @@ primitives to an @code{io::Write}.")
(snippet
'(begin (delete-file-recursively "jemalloc") #t))))))
+(define-public rust-jemallocator-0.5
+ (package
+ (name "rust-jemallocator")
+ (version "0.5.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "jemallocator" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
"19kfd64hhh2anzfqm1c0yg0mg0nkmlzmcaw2njq543486x0m3hhn"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-jemalloc-sys" ,rust-jemalloc-sys-0.5)
+ ("rust-libc" ,rust-libc-0.2))
+ #:cargo-development-inputs
+ (("rust-paste" ,rust-paste-1))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'override-jemalloc
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((jemalloc (assoc-ref inputs "jemalloc")))
+ ;; This flag is needed when not using the bundled jemalloc.
+ ;; https://github.com/tikv/jemallocator/issues/19
+ (setenv
"CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
+ (setenv "JEMALLOC_OVERRIDE"
+ (string-append jemalloc "/lib/libjemalloc_pic.a"))))))))
+ (native-inputs
+ (list jemalloc))
+ (home-page "https://github.com/tikv/jemallocator")
+ (synopsis "Rust allocator backed by jemalloc")
+ (description
+ "This package provides a Rust allocator backed by jemalloc.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-jemallocator-0.3
(package
+ (inherit rust-jemallocator-0.5)
(name "rust-jemallocator")
(version "0.3.2")
(source
@@ -30040,19 +30076,13 @@ primitives to an @code{io::Write}.")
(sha256
(base32
"0sabfa5118b7l4ars5n36s2fjyfn59w4d6mjs6rrmsa5zky67bj3"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-jemalloc-sys" ,rust-jemalloc-sys-0.3)
("rust-libc" ,rust-libc-0.2))
#:cargo-development-inputs
- (("rust-paste" ,rust-paste-0.1))))
- (home-page "https://github.com/gnzlbg/jemallocator")
- (synopsis "Rust allocator backed by jemalloc")
- (description
- "This package provides a Rust allocator backed by jemalloc.")
- (license (list license:expat license:asl2.0))))
+ (("rust-paste" ,rust-paste-0.1))))))
(define-public rust-jemallocator-0.1
(package
- 216/373: gnu: rust-test-assembler-0.1: Fix inputs., (continued)
- 216/373: gnu: rust-test-assembler-0.1: Fix inputs., guix-commits, 2023/04/16
- 219/373: gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 220/373: gnu: rust-wasm-bindgen-futures-0.4: Update to 0.4.34., guix-commits, 2023/04/16
- 221/373: gnu: rust-wasm-bindgen-macro-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 222/373: gnu: rust-wasm-bindgen-macro-support-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 223/373: gnu: rust-wasm-bindgen-shared-0.2: Update to 0.2.84., guix-commits, 2023/04/16
- 225/373: gnu: rust-wasm-bindgen-test-macro-0.3: Update to 0.3.34., guix-commits, 2023/04/16
- 227/373: gnu: rust-weezl-0.1: Update to 0.1.7., guix-commits, 2023/04/16
- 234/373: gnu: Remove rust-crunchy-0.1., guix-commits, 2023/04/16
- 264/373: gnu: Add rust-jemalloc-sys-0.5., guix-commits, 2023/04/16
- 265/373: gnu: Add rust-jemallocator-0.5.,
guix-commits <=
- 266/373: gnu: rust-linked-hash-map-0.5: Update to 0.5.6., guix-commits, 2023/04/16
- 269/373: gnu: Add rust-ron-0.7., guix-commits, 2023/04/16
- 277/373: gnu: Add rust-normpath-0.3., guix-commits, 2023/04/16
- 211/373: gnu: Add rust-miniz-oxide-0.6., guix-commits, 2023/04/16
- 226/373: gnu: rust-web-sys-0.3: Update to 0.3.61., guix-commits, 2023/04/16
- 229/373: gnu: Add rust-zune-inflate-0.2., guix-commits, 2023/04/16
- 231/373: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/04/16
- 235/373: gnu: Add rust-const-fn-assert-0.1., guix-commits, 2023/04/16
- 241/373: gnu: Remove rust-askama-derive-0.10., guix-commits, 2023/04/16
- 245/373: gnu: Add rust-libwebp-sys-0.4., guix-commits, 2023/04/16