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
somewhere in the dependency tree.default-features = false - wasm-bindgen
-
Enables wasm-bindgen of futures-timer
- sparse default
- cache
- 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