2018-11-04 13:03:39 +00:00
|
|
|
[package]
|
2022-04-29 08:06:09 +00:00
|
|
|
name = "jemallocator-global"
|
2019-03-25 10:34:42 +00:00
|
|
|
# Make sure to update the version in the readme as well:
|
2022-05-24 23:31:42 +00:00
|
|
|
version = "0.5.0"
|
2020-07-21 11:33:59 +00:00
|
|
|
authors = [
|
|
|
|
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
|
|
|
|
"The TiKV Project Developers",
|
|
|
|
]
|
|
|
|
edition = "2018"
|
2018-11-04 13:03:39 +00:00
|
|
|
license = "MIT/Apache-2.0"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["allocator", "jemalloc"]
|
|
|
|
categories = ["memory-management", "api-bindings"]
|
2020-07-21 11:33:59 +00:00
|
|
|
repository = "https://github.com/tikv/jemallocator"
|
|
|
|
homepage = "https://github.com/tikv/jemallocator"
|
2022-04-29 08:06:09 +00:00
|
|
|
documentation = "https://docs.rs/jemallocator-global"
|
2018-11-04 13:03:39 +00:00
|
|
|
description = """
|
|
|
|
Sets `jemalloc` as the `#[global_allocator]`
|
|
|
|
"""
|
|
|
|
|
2020-07-22 07:39:21 +00:00
|
|
|
[badges]
|
2020-07-21 11:33:59 +00:00
|
|
|
travis-ci = { repository = "tikv/jemallocator" }
|
|
|
|
codecov = { repository = "tikv/jemallocator" }
|
|
|
|
is-it-maintained-issue-resolution = { repository = "tikv/jemallocator" }
|
|
|
|
is-it-maintained-open-issues = { repository = "tikv/jemallocator" }
|
2018-11-04 13:03:39 +00:00
|
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
|
|
|
|
[dependencies]
|
2022-05-24 23:31:42 +00:00
|
|
|
jemallocator = { version = "0.5.0", path = "../jemallocator", optional = true }
|
2018-11-04 13:03:39 +00:00
|
|
|
cfg-if = "0.1"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = []
|
|
|
|
# Unconditionally sets jemalloc as the global allocator:
|
2022-04-29 08:06:09 +00:00
|
|
|
force_global_jemalloc = [ "jemallocator" ]
|
2018-11-04 13:03:39 +00:00
|
|
|
|
|
|
|
# To enable `jemalloc` as the `#[global_allocator]` by default
|
|
|
|
# for a particular target, white-list the target explicitly here:
|
|
|
|
|
2020-07-21 11:33:59 +00:00
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
|
2022-05-24 23:31:42 +00:00
|
|
|
jemallocator = { version = "0.5.0", path = "../jemallocator", optional = false }
|
2018-11-04 13:03:39 +00:00
|
|
|
|
2019-04-05 14:19:10 +00:00
|
|
|
# FIXME: https://github.com/gnzlbg/jemallocator/issues/91
|
2018-11-04 13:03:39 +00:00
|
|
|
# [target.'cfg(target_os = "windows")'.dependencies]
|
2022-05-13 21:19:25 +00:00
|
|
|
# jemallocator = { path = "../jemallocator" }
|
2018-11-04 13:03:39 +00:00
|
|
|
|
|
|
|
# `jemalloc` is known not to work on - see `jemalloc-sys/build.rs`.
|
|
|
|
# - rumprun
|
|
|
|
# - bitrig
|
|
|
|
# - redox
|
|
|
|
# - fuchsia
|
|
|
|
# - emscripten
|
|
|
|
# - wasm32
|
|
|
|
|