Cargo Features

[dependencies]
hypercore-protocol = { version = "0.4.1", default-features = false, features = ["wasm-bindgen", "sparse", "cache", "tokio", "async-std", "js_interop_tests"] }
default = async-std, sparse

These default features are set whenever hypercore-protocol is added without default-features = false somewhere in the dependency tree.

wasm-bindgen

Enables wasm-bindgen of futures-timer

sparse default

Enables sparse of hypercore

cache

Enables cache of hypercore

tokio

Enables tokio of hypercore and random-access-disk

async-std default

Enables async-std of hypercore and random-access-disk

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