Cargo Features
[dependencies]
forest-filecoin = { version = "0.16.7", default-features = false, features = ["doctest-private", "benchmark-private", "rustalloc", "jemalloc", "mimalloc"] }
These should be refactored (probably removed) in #2984
- default = jemalloc
-
The
jemalloc
feature is set by default wheneverforest-filecoin
is added without
somewhere in the dependency tree.default-features = false - doctest-private
-
see lib.rs::doctest_private
Affects
forest-filecoin::doctest_private
… - benchmark-private
-
see lib.rs::benchmark_private
Affects
index::Reader.header
,forest::index
,forest-filecoin::benchmark_private
… - rustalloc
-
Allocator
- jemalloc default
-
Enables tikv-jemallocator
- mimalloc
-
Enables mimalloc