Cargo Features
[dependencies]
bable = { version = "0.1.0", default-features = false, features = ["std", "full", "singlethread", "metrics", "metrics-std", "nightly", "js", "aes", "aes-std", "inline-more"] }
- default = std
-
The
std
feature is set by default wheneverbable
is added without
somewhere in the dependency tree.default-features = false - std default full? = crossbeam-channel, crossbeam-utils, fmmap, num_cpus, parking_lot
-
Enables use_std of scopeguard, sync of stretto ^0.7, std of tracing, ref_counter_std and std of vela-utils, sea-std, std and xxhash64-std of vpb, std and threadpool of zallocator and std of rand
rand:
Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.
- full = std
-
Enables tracing
- singlethread = hashbrown, scopeguard
-
Enables singlethread of vela-utils, core of zallocator
- metrics
-
Enables spin_no_std of lazy_static, map_cell of vela-utils
Affects
bable::metrics
… - metrics-std = lazy_static
-
Enables map_cell_std of vela-utils
- nightly
-
Enables nightly of lru ^0.7 and zallocator
- js
- aes
-
enable aes encryption
- aes-std
- inline-more
-
Enables inline-more of hashbrown ^0.12
hashbrown:
Enables usage of
#[inline]
on far more functions than by default in this crate. This may lead to a performance increase but often comes at a compile time cost.
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.