nido_svc_common/lib.rs
1// SPDX-License-Identifier: Apache-2.0 OR MIT
2
3//! `nido-svc-common` — shared building blocks for nido-*-svc crates.
4//!
5//! Eliminates the ~150 LOC of duplicated boilerplate in each of the 13
6//! daily-companion services (health handler, OpenAPI spec builder, RFC 7807
7//! error type, SSE keepalive wrapper, tower middleware stack, and rand ID).
8//!
9//! # Usage
10//!
11//! ```rust,no_run
12//! use nido_svc_common::{
13//! error::NidoSvcError,
14//! health::health_router,
15//! middleware::apply_middleware_stack,
16//! openapi::{OpenApiSpec, RouteSpec},
17//! rand::rand_id,
18//! sse::sse_with_keepalive,
19//! };
20//! ```
21
22pub mod error;
23pub mod health;
24pub mod middleware;
25pub mod openapi;
26pub mod rand;
27pub mod sse;