[package]
edition = "2024"
name = "cryprot-net"
version = "0.2.2"
authors = ["Robin Hundt"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Networking library for cryptographic protocols built on QUIC."
readme = "README.md"
keywords = [
"networking",
"quic",
]
license = "MIT"
repository = "https://github.com/robinhundt/CryProt"
resolver = "2"
[features]
__testing = [
"dep:anyhow",
"metrics",
]
metrics = [
"dep:tracing-subscriber",
"serde/derive",
]
[lib]
name = "cryprot_net"
path = "src/lib.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
required-features = ["__testing"]
[dependencies.anyhow]
version = "1.0.102"
optional = true
[dependencies.bincode]
version = "1.3.3"
[dependencies.s2n-quic]
version = "1.75.0"
[dependencies.serde]
version = "1.0.203"
features = ["derive"]
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.37.0"
features = [
"io-util",
"net",
]
[dependencies.tokio-serde]
version = "0.9.0"
features = ["bincode"]
[dependencies.tokio-util]
version = "0.7.11"
features = ["codec"]
[dependencies.tracing]
version = "0.1.40"
[dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]
optional = true
[dev-dependencies.anyhow]
version = "1.0.102"
[dev-dependencies.criterion]
version = "0.8"
features = [
"async_tokio",
"html_reports",
]
[dev-dependencies.cryprot-core]
version = "0.3.1"
features = ["__testing"]
[dev-dependencies.futures]
version = "0.3.32"
[dev-dependencies.tokio]
version = "1.37.0"
features = [
"macros",
"rt-multi-thread",
]
[lints.clippy]
unwrap_used = "warn"