main
//! 进程间内部 RPC:门禁、身份信封(加密 + HMAC + 防重放)、服务注册与启动。
//!
//! 依赖方向:本 crate 只依赖 `proto/config/crypt/oltp` 等基础设施,
//! **不依赖任何业务 crate**;业务 crate 实现生成的 service trait,
//! 由 `app` 在启动时把具体 service 追加到 [`server::InternalRouter`]。
#![allow(clippy::result_large_err)]
pub mod client;
pub mod envelope;
pub mod error;
pub mod health;
pub mod interceptor;
pub mod nonce;
pub mod reflection;
pub mod server;
pub use client::{Connection, RpcInterceptor};
pub use envelope::{EnvelopeSealer, EnvelopeVerifier, VerifiedIdentity};
pub use error::InternalError;
pub use interceptor::{Gate, RequestMeta};
pub use nonce::NonceStore;
pub use server::{InternalRouter, ServerConfig};
pub fn file_descriptor_set() -> &'static [u8] {
proto::FILE_DESCRIPTOR_SET
}