Skip to main content

reifydb_sub_api/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4//! Subsystem trait surface: the contract every `sub-*` crate implements so the runtime supervisor can start, stop,
5//! and health-check them through a uniform handle. The trait is intentionally minimal so a subsystem can hide its
6//! own internal architecture while still participating in lifecycle management. New subsystems implement this trait
7//! to be discoverable by the supervisor.
8
9#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
10#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
11#![cfg_attr(not(debug_assertions), deny(warnings))]
12#![allow(clippy::tabs_in_doc_comments)]
13
14pub mod subsystem;