[package]
name = "monetize-proto"
description = "The .proto files for monetize's gRPC surface (server ⇄ console ⇄ product), and their tonic-build output"
# 0.3.2 (2026-10-27, R5G): crates.io's 0.3.1 lacks the A32-29 words in signup.proto and
# site_book.proto (offer_words, paid_until_words). Additive.
# 0.3.3 (2026-10-28): main differs from crates.io 0.3.2: EstateOrder.Refeed and its status
# fields (estate_order.proto, MAIL-RELAY + NIGHT-PUBREPO), EstateOrder.Console and its
# request/response (OX-WGDS3) and usage.proto. Additive.
# (2026-10-29, OVW-CLEAN): main differs from crates.io 0.3.3: estates.proto (the Overview's
# classified estates and the New-estate slot). Additive; bumped at its next publish.
version = "0.3.3"
edition.workspace = true
rust-version.workspace = true
repository.workspace = true
license.workspace = true
authors.workspace = true
# Published (2026-10-22): an OPEN crate (the wire, no logic); holger-fleet, which
# Holger's opt-in `metered` reaches, depends on it, and crates.io must resolve it
# for `cargo install holger`.
publish = true
[dependencies]
tonic.workspace = true
# tonic 0.14 split the prost codec out of `tonic`; the generated code needs it.
tonic-prost.workspace = true
# The per-call SSHSIG credential of monetize's control API (`control_auth`):
# edda's product-neutral scheme, the one gunnar's control plane uses too
# (workspace RULE 2). Path + version until edda publishes 0.1.0.
nornir-auth-sshsig = { version = "0.1.0", path = "../../../edda/crates/nornir-auth-sshsig" }
prost.workspace = true
[features]
# **Test fakes only** (gunnar-ui 2026-10-27: every new monetize RPC broke the consoles' test
# fakes at compile, E0046): every generated server trait's method gets tonic's default body,
# UNIMPLEMENTED, so a fake writes only the calls its test makes. A real server never names it:
# it must implement every method, and without this feature the compiler says so.
default-stubs = []
[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt"] }
[build-dependencies]
# protoc-free, like gunnar-ui-server's build: protox parses the .proto sources in
# pure Rust, with nothing shelled out to, and hands tonic-prost-build a FileDescriptorSet.
protox.workspace = true
tonic-prost-build.workspace = true