Cargo Features

[dependencies]
malloc-array = { version = "1.4.4", default-features = false, features = ["assume_libc", "zst_noalloc", "jemalloc"] }
default = zst_noalloc

The zst_noalloc feature is set by default whenever malloc-array is added without default-features = false somewhere in the dependency tree.

assume_libc

Assume Rust will free things allocated with malloc() properly.

zst_noalloc default

Do not allocate for ZSTs

jemalloc = jemalloc-sys

Use jemalloc instead of libc malloc

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.

jemalloc-sys jemalloc?

Enables jemalloc-sys ^0.3