[package]
name = "quic-rpc"
version = "0.16.0"
edition = "2021"
authors = ["RĂ¼diger Klaehn <rklaehn@protonmail.com>", "n0 team"]
keywords = ["api", "protocol", "network", "rpc"]
categories = ["network-programming"]
license = "Apache-2.0/MIT"
repository = "https://github.com/n0-computer/quic-rpc"
description = "A streaming rpc system based on quic"
rust-version = "1.76"
[dependencies]
bytes = { version = "1", optional = true }
derive_more = { version = "1.0.0-beta.6", features = ["from", "try_into", "display"] }
flume = { version = "0.11", optional = true }
futures-lite = "2.3.0"
futures-sink = "0.3.30"
futures-util = { version = "0.3.30", features = ["sink"] }
hyper = { version = "0.14.16", features = ["full"], optional = true }
iroh-net = { version = "0.28.1", optional = true }
pin-project = "1"
quinn = { package = "iroh-quinn", version = "0.12", optional = true }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1", default-features = false, features = ["macros", "sync"] }
tokio-serde = { version = "0.9", features = ["bincode"], optional = true }
tokio-util = { version = "0.7", features = ["rt"] }
postcard = { version = "1", features = ["use-std"], optional = true }
tracing = "0.1"
futures = { version = "0.3.30", optional = true }
anyhow = "1.0.73"
slab = "0.4.9"
smallvec = "1.13.2"
time = "0.3.36"
[dev-dependencies]
anyhow = "1.0.73"
async-stream = "0.3.3"
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["full"] }
quinn = { package = "iroh-quinn", version = "0.12", features = ["ring"] }
rcgen = "0.13"
thousands = "0.2.0"
tracing-subscriber = "0.3.16"
tempfile = "3.5.0"
proc-macro2 = "1.0.66"
futures-buffered = "0.2.4"
testresult = "0.4.1"
nested_enum_utils = "0.1.0"
tokio-util = { version = "0.7", features = ["rt"] }
[features]
hyper-transport = ["dep:flume", "dep:hyper", "dep:postcard", "dep:bytes", "dep:tokio-serde", "tokio-util/codec"]
quinn-transport = ["dep:flume", "dep:quinn", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
flume-transport = ["dep:flume"]
iroh-transport = ["dep:iroh-net", "dep:flume", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
macros = []
default = ["flume-transport"]
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "errors"
required-features = ["flume-transport"]
[[example]]
name = "macro"
required-features = ["flume-transport", "macros"]
[[example]]
name = "store"
required-features = ["flume-transport", "macros"]
[[example]]
name = "modularize"
required-features = ["flume-transport"]
[workspace]
members = ["examples/split/types", "examples/split/server", "examples/split/client", "quic-rpc-derive"]