[package]
name = "iroh-quinn"
version = "0.12.0"
license.workspace = true
repository.workspace = true
description = "Versatile QUIC transport protocol implementation"
readme = "../README.md"
keywords.workspace = true
categories.workspace = true
workspace = ".."
edition.workspace = true
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
[features]
default = ["log", "platform-verifier", "ring", "runtime-tokio", "rustls"]
lock_tracking = []
platform-verifier = ["proto/platform-verifier"]
rustls = ["dep:rustls", "proto/rustls", "proto/ring"]
ring = ["proto/ring"]
runtime-tokio = ["tokio/time", "tokio/rt", "tokio/net"]
runtime-async-std = ["async-io", "async-std"]
runtime-smol = ["async-io", "smol"]
log = ["tracing/log", "proto/log", "udp/log"]
[dependencies]
async-io = { workspace = true, optional = true }
async-std = { workspace = true, optional = true }
bytes = { workspace = true }
futures-io = { workspace = true, optional = true }
rustc-hash = { workspace = true }
pin-project-lite = { workspace = true }
proto = { package = "iroh-quinn-proto", path = "../quinn-proto", version = "0.12.0", default-features = false }
rustls = { workspace = true, optional = true }
smol = { workspace = true, optional = true }
socket2 = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }
udp = { package = "iroh-quinn-udp", path = "../quinn-udp", version = "0.5", default-features = false, features = ["tracing"] }
async-global-executor = { workspace = true, optional = true }
async-fs = { workspace = true, optional = true }
async-executor = { workspace = true, optional = true }
[dev-dependencies]
anyhow = { workspace = true }
crc = { workspace = true }
bencher = { workspace = true }
directories-next = { workspace = true }
rand = { workspace = true }
rcgen = { workspace = true }
rustls-pemfile = { workspace = true }
clap = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "time", "macros"] }
tracing-subscriber = { workspace = true }
tracing-futures = { workspace = true }
url = { workspace = true }
tokio-stream = "0.1.15"
[[example]]
name = "server"
required-features = ["rustls"]
[[example]]
name = "client"
required-features = ["rustls"]
[[example]]
name = "insecure_connection"
required-features = ["rustls"]
[[example]]
name = "single_socket"
required-features = ["rustls"]
[[example]]
name = "connection"
required-features = ["rustls"]
[[bench]]
name = "bench"
harness = false
required-features = ["rustls"]