Cargo Features

[dependencies]
quic-rpc = { version = "0.17.3", default-features = false, features = ["hyper-transport", "quinn-transport", "flume-transport", "iroh-transport", "macros", "test-utils", "futures"] }
hyper-transport

HTTP transport using the hyper crate

Enables bytes, flume, hyper ^0.14.16, postcard, and tokio-serde, codec of tokio-util

Affects client::HyperConnector, server::HyperListener, transport::hyper

quinn-transport

QUIC transport using the iroh-quinn crate

Enables bytes, flume, postcard, iroh-quinn, and tokio-serde, codec of tokio-util

Affects client::QuinnConnector, server::QuinnListener, transport::quinn

flume-transport default

In memory transport using the flume crate

Enables flume

Affects client::FlumeConnector, quic-rpc::flume_channel, server::FlumeListener, transport::flume

iroh-transport

p2p QUIC transport using the iroh crate

Enables flume, iroh ^0.29, postcard, and tokio-serde, codec of tokio-util

Affects client::IrohConnector, server::IrohListener, transport::iroh

macros

Macros for creating request handlers

test-utils

Utilities for testing

Enables rcgen and rustls

rcgen:

for test-utils

Affects quic-rpc::quinn_channel

default = flume-transport

Default, includes the memory transport

Features from optional dependencies

futures implicit feature