Skip to main content

tonic_rest_core/
lib.rs

1//! Shared protobuf descriptor types for the tonic-rest ecosystem.
2//!
3//! This crate provides custom [`prost::Message`] types that preserve the
4//! `google.api.http` extension (field 72295728) which standard
5//! `prost_types::MethodOptions` drops during decoding.
6//!
7//! Both `tonic-rest-build` (build-time codegen) and `tonic-rest-openapi`
8//! (`OpenAPI` spec generation) depend on these shared types. You should not
9//! need to depend on this crate directly — use the higher-level crates instead.
10
11#![forbid(unsafe_code)]
12#![deny(missing_docs)]
13
14pub mod descriptor;