indexbus_platform_core/lib.rs
1//! `indexbus-platform-core` provides **platform-level primitives** for running IndexBus
2//! applications: lifecycle supervision, shutdown coordination, and restart/backoff policy.
3//!
4//! This crate is intentionally **std-first** and is expected to be used alongside `indexbus-kit`.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![deny(missing_docs)]
8
9#[cfg(all(not(feature = "std"), not(doc)))]
10compile_error!("indexbus-platform-core currently requires the `std` feature");
11
12#[cfg(feature = "std")]
13extern crate std;
14
15pub mod errors;
16/// Common re-exports for consumers of this crate.
17pub mod prelude;
18
19/// Lifecycle supervision and shutdown coordination.
20pub mod lifecycle;
21
22mod internal;