Cargo Features
[dependencies]
hypercore = { version = "0.12.1", default-features = false, features = ["sparse", "tokio", "async-std", "cache", "js_interop_tests"] }
- default = async-std, sparse
-
These default features are set whenever
hypercore
is added without
somewhere in the dependency tree.default-features = false - sparse default
-
Enables sparse of random-access-disk
- tokio
-
Enables tokio of random-access-disk
- async-std default
-
Enables async-std of random-access-disk
- cache = moka
-
Affects
builder::CacheOptionsBuilder
… - js_interop_tests
-
Used only in interoperability tests under tests/js-interop which use the javascript version of hypercore to verify that this crate works. To run them, use:
cargo test --features js-interop-tests
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.