Cargo Features

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

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 default

Enables tokio of hypercore

async-std

Enables async-std of hypercore

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