Cargo Features
[dependencies]
gnostr-core = { version = "0.4.2-alpha.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
gnostr-core
is added without
somewhere in the dependency tree.default-features = false - wasm-bindgen
-
Enables wasm-bindgen of futures-timer
- sparse default
-
Enables sparse of hypercore ^0.12
- cache
-
Enables cache of hypercore ^0.12
- tokio
-
Enables tokio of hypercore ^0.12 and random-access-disk
- async-std default
-
Enables async-std of hypercore ^0.12 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