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 whenevermalloc-array
is added without
somewhere in the dependency tree.default-features = false - 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