Cargo Features

[dependencies]
entropy-protocol = { version = "0.3.0", default-features = false, features = ["server", "wasm", "unsafe", "wasm-test"] }
default = server

The server feature is set by default whenever entropy-protocol is added without default-features = false somewhere in the dependency tree.

server default

Enables tokio-tungstenite, std and user-native of entropy-shared, native and substrate-compat of subxt ^0.35.3, rt-multi-thread of tokio and axum

Used only with the server feature to implement the WsConnection trait

Affects protocol_transport::ThreadSafeWsConnection

wasm wasm-test?

Enables base64, wasm-bindgen, wasm-bindgen-derive, and wasm-bindgen-futures, user-wasm and wasm of entropy-shared, web of subxt ^0.35.3 and gloo-net, js-sys, and schnorrkel

gloo-net:

Used only with the wasm feature

Affects protocol_transport::ThreadSafeWsConnection, sign_and_encrypt::wasm

unsafe

Extra functionality only intended for use in development

wasm-test = wasm

Use sp-core compatible sr25519 keypairs on wasm, rather then polkadot JS. For testing only