Cargo Features

Dlmalloc has no features set by default.

[dependencies]
dlmalloc = { version = "0.2.7", features = ["global", "debug", "rustc-dep-of-std"] }
global

Enable implementations of the GlobalAlloc standard library API, exporting a new GlobalDlmalloc as well which implements this trait.

Affects unix::acquire_global_lock, unix::release_global_lock, unix::enable_alloc_after_fork, wasm::acquire_global_lock, wasm::release_global_lock, wasm::enable_alloc_after_fork, windows::acquire_global_lock, windows::release_global_lock, windows::enable_alloc_after_fork, xous::acquire_global_lock, xous::release_global_lock, xous::enable_alloc_after_fork

debug

Enable very expensive debug checks in this crate

rustc-dep-of-std = core

Enables rustc-dep-of-std of compiler_builtins

compiler_builtins:

Only used in the compiler's build system

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

core rustc-dep-of-std?

Enables rustc-std-workspace-core

For more information on these dependencies see rust-lang/rust's src/tools/rustc-std-workspace folder

compiler_builtins rustc-dep-of-std?