Cargo Features
[dependencies]
vproxy = { version = "1.2.5", default-features = false, features = ["jemalloc", "tcmalloc", "snmalloc", "rpmalloc", "mimalloc"] }
- default = mimalloc
-
The
mimalloc
feature is set by default whenevervproxy
is added without
somewhere in the dependency tree.default-features = false - jemalloc = jemallocator
- tcmalloc
-
for memory allocator
- snmalloc = snmalloc-rs
- rpmalloc
-
Enables rpmalloc
- mimalloc default
-
Enables mimalloc
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.
- snmalloc-rs snmalloc?
- jemallocator jemalloc?
-
Enables tikv-jemallocator