Cargo Features
[dependencies]
jsonrpc = { version = "0.18.0", default-features = false, features = ["simple_http", "minreq_http", "simple_tcp", "simple_uds", "proxy"] }
- default = simple_http, simple_tcp
-
These default features are set whenever
jsonrpc
is added without
somewhere in the dependency tree.default-features = false - simple_http default = base64
-
A bare-minimum HTTP transport.
Affects
http::simple_http
… - minreq_http = base64, minreq
-
A transport that uses
minreq
as the HTTP client.Affects
http::minreq_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 minreq_http? simple_http
-
Enables base64 ^0.13.0
- minreq minreq_http?
- socks proxy?