Cargo Features

[dependencies]
parity-util-mem = { version = "0.12.0", default-features = false, features = ["std", "dlmalloc-global", "jemalloc-global", "mimalloc-global", "ethereum-impls", "estimate-heapsize", "lru", "hashbrown", "smallvec"] }
default = ethereum-impls, hashbrown, lru, primitive-types, smallvec, std

These default features are set whenever parity-util-mem is added without default-features = false somewhere in the dependency tree.

std default = parking_lot
dlmalloc-global = dlmalloc, estimate-heapsize

use dlmalloc as global allocator

jemalloc-global = tikv-jemalloc-ctl, tikv-jemallocator

use jemalloc as global allocator

mimalloc-global = libmimalloc-sys, mimalloc

use mimalloc as global allocator

ethereum-impls default = ethereum-types, primitive-types

implement additional types

Affects parity-util-mem::ethereum_impls

estimate-heapsize dlmalloc-global?

Full estimate: no call to allocator

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.

dlmalloc dlmalloc-global?
lru default

Enables lru ^0.8

hashbrown default

Enables hashbrown ^0.12

mimalloc mimalloc-global?
libmimalloc-sys mimalloc-global?
smallvec default
ethereum-types ethereum-impls
parking_lot std
primitive-types default ethereum-impls

Affects parity-util-mem::primitives_impls

tikv-jemalloc-ctl not win jemalloc-global?
tikv-jemallocator not win jemalloc-global?