[package]
edition = "2021"
name = "dlmalloc"
version = "0.2.13"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
build = false
exclude = ["src/dlmalloc.c"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A Rust port of the dlmalloc allocator
"""
homepage = "https://github.com/alexcrichton/dlmalloc-rs"
documentation = "https://docs.rs/dlmalloc"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/dlmalloc-rs"
[package.metadata.docs.rs]
features = ["global"]
[features]
debug = []
global = []
rustc-dep-of-std = ["core"]
[lib]
name = "dlmalloc"
path = "src/lib.rs"
doctest = false
[[test]]
name = "eat_memory"
path = "tests/eat_memory.rs"
[[test]]
name = "global"
path = "tests/global.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.cfg-if]
version = "1.0"
[dependencies.core]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-core"
[dev-dependencies.arbitrary]
version = "1.3.2"
[dev-dependencies.rand]
version = "0.8"
features = ["small_rng"]
[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dependencies.libc]
version = "0.2"
default-features = false
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = ">=0.52.0, <=0.61.*"
features = [
"Win32_Foundation",
"Win32_System_Memory",
"Win32_System_Threading",
"Win32_System_SystemInformation",
]
[profile.release]
debug-assertions = true