Cargo Features
[dependencies]
jsonrpc = { version = "0.19.0", default-features = false, features = ["simple_http", "bitreq_http", "simple_tcp", "simple_uds", "proxy"] }
- default = simple_http, simple_tcp
-
These default features are set whenever
jsonrpcis added withoutsomewhere in the dependency tree.default-features = false - simple_http default = base64
-
A bare-minimum HTTP transport.
Affects
http::simple_http… - bitreq_http = base64, bitreq
-
A transport that uses
bitreqas the HTTP client.Affects
http::bitreq_http… - simple_tcp default
-
Basic transport over a raw TcpListener
Affects
jsonrpc::simple_tcp… - simple_uds
-
Basic transport over a raw UnixStream
Affects
jsonrpc::simple_uds… - proxy = socks
-
Enable Socks5 Proxy in transport
Affects
http::DEFAULT_PROXY_PORT…
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.
- base64 bitreq_http? simple_http
- bitreq bitreq_http?
-
Enables bitreq ^0.2.0
- socks proxy?