[package]
name = "nominal-api-proto"
version = "0.1311.1"
edition = "2024"
authors = ["Alexander Hill <alex.hill@nominal.io>"]
description = "Protobuf/gRPC API bindings for the Nominal platform"
homepage = "https://nominal.io"
license = "MIT"
# src/ includes pre-generated bindings (gitignored but included via this directive)
include = ["src/", "build.rs", "definitions/protos/", "definitions/proto-includes/"]

[[bin]]
name = "compile-protos"
path = "src/bin/compile_protos.rs"
required-features = ["_build"]

[dependencies]
prost = "0.13.5"
tonic = { version = "0.13.1", features = ["transport"] }
# Used by the compile-protos pre-gen binary and generate-bindings build script
tonic-build = { version = "0.13.1", optional = true }
prost-types = { version = "0.13.5", optional = true }

[build-dependencies]
# Optional: only compiled when generate-bindings feature is active.
tonic-build = { version = "0.13.1", optional = true }
prost-types = { version = "0.13.5", optional = true }

[features]
# Opt-in: regenerate all bindings at build time instead of using the pre-generated source.
# Requires the definitions/ directory to be present (it is, for published crates).
generate-bindings = ["dep:tonic-build", "dep:prost-types"]
# Used by the compile-protos pre-gen binary (internal)
_build = ["dep:tonic-build", "dep:prost-types"]
