Cargo Features
[dependencies]
electrum-client = { version = "0.21.0", default-features = false, features = ["minimal", "debug-calls", "proxy", "use-rustls", "use-rustls-ring", "use-openssl"] }
- default = proxy, use-rustls
-
These default features are set whenever
electrum-client
is added without
somewhere in the dependency tree.default-features = false Affects
electrum-client::socks
,raw_client::ElectrumProxyStream
,raw_client::ElectrumSslStream
… - minimal
- debug-calls
-
Affects
api::ElectrumApi.calls_made
… - proxy default = byteorder, libc, winapi
-
Affects
electrum-client::socks
,raw_client::ElectrumProxyStream
,electrum-client::client
… - use-rustls default = webpki-roots
-
Enables rustls
Affects
raw_client::ElectrumSslStream
,electrum-client::client
… - use-rustls-ring = webpki-roots
-
Enables logging, ring, std and tls12 of rustls
Affects
raw_client::ElectrumSslStream
,electrum-client::client
… - use-openssl = openssl
-
Affects
raw_client::ElectrumSslStream
,electrum-client::client
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- openssl use-openssl?
-
Enables openssl
Optional dependencies
- rustls use-rustls use-rustls-ring?
- webpki-roots use-rustls use-rustls-ring?
-
Enables webpki-roots ^0.25
- byteorder proxy
- libc unix proxy
- winapi win proxy