nido-svc-common 0.1.0-alpha.1

Shared health, error, OpenAPI, SSE, and middleware primitives for nido-*-svc crates
Documentation
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! `nido-svc-common` — shared building blocks for nido-*-svc crates.
//!
//! Eliminates the ~150 LOC of duplicated boilerplate in each of the 13
//! daily-companion services (health handler, OpenAPI spec builder, RFC 7807
//! error type, SSE keepalive wrapper, tower middleware stack, and rand ID).
//!
//! # Usage
//!
//! ```rust,no_run
//! use nido_svc_common::{
//!     error::NidoSvcError,
//!     health::health_router,
//!     middleware::apply_middleware_stack,
//!     openapi::{OpenApiSpec, RouteSpec},
//!     rand::rand_id,
//!     sse::sse_with_keepalive,
//! };
//! ```

pub mod error;
pub mod health;
pub mod middleware;
pub mod openapi;
pub mod rand;
pub mod sse;