api_shared/lib.rs
1//! # API Shared
2//!
3//! Shared utilities and definitions for VPR APIs.
4//!
5//! Contains:
6//! - Protobuf-generated types (`pb` module)
7//! - Shared services like `HealthService`
8//! - Authentication utilities (usable by both gRPC and REST)
9//!
10//! Used by `api-grpc` and `api-rest` for common functionality.
11
12// Re-export the generated protobuf module. The generated code will be placed
13// into OUT_DIR at build time by the build script.
14pub mod pb {
15 tonic::include_proto!("vpr.v1");
16}
17
18pub mod auth;
19pub mod health;
20
21pub const FILE_DESCRIPTOR_SET: &[u8] = tonic::include_file_descriptor_set!("proto_descriptor");
22
23pub use health::HealthService;
24pub use pb::*;