Cargo Features
Dlmalloc has no features set by default.
[dependencies]
dlmalloc = { version = "0.2.13", features = ["global", "debug", "rustc-dep-of-std"] }
- global
-
Enable implementations of the
GlobalAllocstandard library API, exporting a newGlobalDlmallocas 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
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
This is an internal dep for supporting the nightly toolchain option
-Z build-std: https://github.com/rust-lang/rust/blob/main/library/rustc-std-workspace-core/README.md