[package]
edition = "2024"
rust-version = "1.88"
name = "proto-build-kit"
version = "0.1.0"
authors = ["Gregoire Salingue"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic build-helper primitives for proto-source services: stage embedded .proto bytes to a protoc-relative tempdir, compile via protox, extract MethodOptions extension values, and drive tonic-prost-build with type_attribute injection."
documentation = "https://docs.rs/proto-build-kit"
readme = "README.md"
keywords = [
"protobuf",
"buf",
"tonic",
"connectrpc",
"build-script",
]
categories = ["development-tools::build-utils"]
license = "MIT"
repository = "https://github.com/brefwiz/proto-build-kit"
[features]
default = ["tonic"]
tonic = [
"dep:tonic-build",
"dep:tonic-prost-build",
]
[lib]
name = "proto_build_kit"
path = "src/lib.rs"
[[example]]
name = "extract_annotations"
path = "examples/extract_annotations.rs"
[[example]]
name = "stage_compile"
path = "examples/stage_compile.rs"
[[test]]
name = "end_to_end"
path = "tests/end_to_end.rs"
[dependencies.prost]
version = "0.14"
[dependencies.prost-reflect]
version = "0.16"
[dependencies.prost-types]
version = "0.14"
[dependencies.protox]
version = "0.9"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.tonic-build]
version = "0.14"
optional = true
[dependencies.tonic-prost-build]
version = "0.14"
optional = true
[dev-dependencies.prost-types]
version = "0.14"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
unsafe_code = "deny"
warnings = "deny"