Cargo Features

[dependencies]
irpc = { version = "0.2.2", default-features = false, features = ["rpc", "quinn_endpoint_setup", "message_spans", "stream"] }
rpc default quinn_endpoint_setup

enable the remote transport

Enables anyhow

used in the test utils to generate quinn endpoints

and n0-future

for AbortOnDropHandle

and postcard

used to ser/de messages when using rpc

and iroh-quinn

currently only transport when using rpc

and smallvec

used as a buffer for serialization when using rpc

and tracing

used in the endpoint handler code when using rpc

and io-util of tokio

just for the oneshot and mpsc queues

Affects irpc::util, irpc::rpc

quinn_endpoint_setup default = rpc

add test utilities

Enables rcgen and rustls, rustls-ring of iroh-quinn and anyhow and futures-buffered

futures-buffered:

used in the benches

message_spans default

pick up parent span when creating channel messages

Affects irpc::WithChannels.span

default = message_spans, quinn_endpoint_setup, rpc, stream

These default features are set whenever irpc is added without default-features = false somewhere in the dependency tree.

stream default

Enables futures-util