footing 0.5.1

Feature-gated foundations for Rust backend services
Documentation
//! Startup and readiness diagnostics for service resources.
//!
//! Probes run serially by default. Independent dependencies can opt into bounded
//! concurrency and an overall time budget, while reports keep registration order.
//! A fixed [`ResourceDiagnostic`] also implements [`ResourceProbe`]: register it
//! with `Arc::new(diagnostic)` to return the same result, details and remediations
//! on every run. Use [`resource_probe`] to perform a fresh check each time.
//!
//! ```
//! use std::time::Duration;
//! use footing::diagnostics::{ResourceRegistry, ResourceRegistryError};
//!
//! let registry = ResourceRegistry::new("api")?
//!     .with_max_concurrency(4)?
//!     .with_probe_timeout(Duration::from_secs(2))?
//!     .with_run_timeout(Duration::from_secs(3))?;
//! # Ok::<(), ResourceRegistryError>(())
//! ```

mod error;
mod model;
mod registry;

pub use error::{ResourceDescriptorError, ResourceDiagnosticError, ResourceRegistryError};
pub use model::{
    DEFAULT_RESOURCE_PROBE_TIMEOUT, MAX_DIAGNOSTICS_SERVICE_NAME_LENGTH,
    MAX_RESOURCE_DIAGNOSTIC_DETAILS, MAX_RESOURCE_DIAGNOSTIC_REMEDIATIONS, MAX_RESOURCE_ID_LENGTH,
    MAX_RESOURCE_LABEL_KEY_LENGTH, MAX_RESOURCE_LABEL_VALUE_LENGTH, MAX_RESOURCE_LABELS,
    MAX_RESOURCE_MESSAGE_LENGTH, MAX_RESOURCE_NAME_LENGTH, MAX_RESOURCE_REPORT_RESOURCES,
    ResourceCriticality, ResourceDescriptor, ResourceDiagnostic, ResourceDiagnosticsReport,
    ResourceDiagnosticsSummary, ResourceKind, ResourceStatus,
};
pub use registry::{ResourceProbe, ResourceRegistry, resource_probe};

#[cfg(test)]
mod tests;