[package]
name = "quicprochat-proto"
version = "0.2.0"
edition.workspace = true
description = "Protocol types for quicprochat — v1 Cap'n Proto (legacy) + v2 Protobuf (prost)"
license     = "Apache-2.0 OR MIT"
repository.workspace = true

build = "build.rs"

[dependencies]
# v1 legacy (Cap'n Proto) — used by existing server/client until rewrite
capnp       = { workspace = true }

# v2 (Protobuf via prost) — new RPC types
prost       = { workspace = true }
prost-types = { workspace = true }
bytes       = { workspace = true }

[build-dependencies]
capnpc      = { workspace = true }
prost-build = { workspace = true }
protobuf-src = "2"

[lints.rust]
unsafe_code = "warn"

[lints.clippy]
# Generated Cap'n Proto code uses patterns that trigger clippy lints.
unwrap_used = "allow"
