Cargo Features
[dependencies]
hypercore = { version = "0.14.0", default-features = false, features = ["replication", "shared-core", "sparse", "tokio", "async-std", "cache", "js_interop_tests"] }
- default = replication, sparse, tokio
-
These default features are set whenever
hypercore
is added without
somewhere in the dependency tree.default-features = false - replication default shared-core?
-
Enables async-broadcast
Affects
hypercore::replication
… -
Enables async-lock
Affects
replication::shared_core
… - sparse default
-
Enables sparse of random-access-disk
- tokio default
-
Enables tokio of random-access-disk
- async-std
-
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.