Skip to main content

tonic_rest_build/
lib.rs

1#![allow(clippy::doc_markdown)] // README uses "OpenAPI" proper noun throughout
2#![doc = include_str!("../README.md")]
3//!
4//! ---
5//!
6//! ## API Reference
7
8#![forbid(unsafe_code)]
9#![deny(missing_docs)]
10
11mod codegen;
12
13/// Protobuf descriptor types re-exported from [`tonic_rest_core`].
14///
15/// **Deprecated**: depend on `tonic-rest-core` directly instead.
16/// This re-export exists for backward compatibility and will be
17/// removed in a future release.
18#[doc(hidden)]
19pub use tonic_rest_core::descriptor;
20#[cfg(feature = "helpers")]
21mod helpers;
22
23pub use codegen::{GenerateError, RestCodegenConfig, generate};
24#[cfg(feature = "helpers")]
25pub use helpers::{
26    ProstSerdeConfig, configure_prost_serde, configure_prost_serde_with_options,
27    dump_file_descriptor_set, try_configure_prost_serde, try_configure_prost_serde_with_options,
28    try_dump_file_descriptor_set,
29};