Cargo Features

[dependencies]
gear-dlmalloc = { version = "0.2.0", default-features = false, features = ["global", "checks", "debug", "verbose", "core", "compiler_builtins"] }
default = global

The global feature is set by default whenever gear-dlmalloc is added without default-features = false somewhere in the dependency tree.

global default

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

Affects linux::acquire_global_lock, linux::release_global_lock, macos::acquire_global_lock, macos::release_global_lock, wasm::acquire_global_lock, wasm::release_global_lock, windows::acquire_global_lock, windows::release_global_lock

checks = debug

Enable very expensive debug checks

debug checks?

Enable debug assertions

verbose

Verbose allocator work actions

Features from optional dependencies

core implicit feature

Enables rustc-std-workspace-core

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

compiler_builtins implicit feature

Enables compiler_builtins

compiler_builtins:

Compiler intrinsics used by the Rust compiler. Also available for other targets if necessary!