[package]
name = "nominal-api"
version = "0.1203.0"
edition = "2024"
authors = ["Alexander Hill <alex.hill@nominal.io>"]
description = "API bindings for the Nominal platform"
homepage = "https://nominal.io"
license = "MIT"
readme = "README.md"
# manually add src/ as we .gitignore the generated code
include = ["src/", "build.rs", "definitions/"]

# run with _build to produce protos before building
[[bin]]
name = "compile-protos"
path = "src/bin/compile_protos.rs"
required-features = ["_build"]

[dependencies]
conjure-error = "5.10.0"
conjure-http = "5.10.0"
conjure-object = "5.10.0"
prost = { version = "0.13.5", optional = true }
tonic = { version = "0.13.1", features = ["transport"], optional = true }
tonic-build = { version = "0.13.1", optional = true }

[build-dependencies]
conjure-codegen = "5.10.0"

[features]
default = ["tonic"]
# Generate types for gRPC support compatible with Tonic for runtime gRPC client/server functionality
tonic = ["dep:tonic", "dep:prost"]
# Only used in pre-build script
_build = ["tonic", "dep:tonic-build"]
