Skip to main content

xds_types/
lib.rs

1//! # xds-types
2//!
3//! Generated protobuf types for Envoy xDS APIs.
4//!
5//! Types are produced at build time from the Envoy `data-plane-api` protos
6//! (and their transitive includes: googleapis, protoc-gen-validate, xds,
7//! opencensus-proto, opentelemetry-proto, prometheus client_model, cel-spec).
8//! The sources live as git submodules under [`proto/`](../../proto/) inside
9//! this crate so the generator has them available both during local
10//! development and after `cargo package`.
11//!
12//! `tonic-build` compiles every service and resource into a single module
13//! tree rooted at `envoy::` and `xds::`, emitted to `OUT_DIR/mod.rs`. That
14//! file is `include!`d here.
15
16#![cfg_attr(docsrs, feature(doc_cfg))]
17#![allow(clippy::all)]
18#![allow(missing_docs)] // Generated code doesn't have docs.
19
20// Re-export prost types for convenience.
21pub use prost::Message;
22pub use prost_types::Any;
23
24// Include the entire generated module tree.
25include!(concat!(env!("OUT_DIR"), "/mod.rs"));