Skip to main content

toolkit/runtime/
mod.rs

1mod gear_manager;
2mod grpc_installers;
3mod host_runtime;
4#[cfg(feature = "bootstrap")]
5mod oop_registration;
6#[cfg(feature = "bootstrap")]
7mod oop_serve;
8mod readiness;
9mod runner;
10mod system_context;
11
12/// Shutdown signal handling utilities
13pub mod shutdown;
14
15#[cfg(test)]
16mod tests;
17
18pub use gear_manager::{
19    Endpoint, GearInstance, GearManager, GrpcServiceNameConflict, InstanceState,
20};
21pub use grpc_installers::{GearInstallers, GrpcInstallerData, GrpcInstallerStore};
22pub use host_runtime::{
23    DEFAULT_SHUTDOWN_DEADLINE, DbOptions, HostRuntime, TOOLKIT_DIRECTORY_ENDPOINT_ENV,
24    TOOLKIT_MODULE_CONFIG_ENV,
25};
26// `DynBearerAuthenticator` / `DynInternalAuthenticator` used to be defined
27// here; they now live in `toolkit_security`, so consumers import them from
28// there rather than through this re-export.
29#[cfg(feature = "bootstrap")]
30pub use oop_serve::OopServeOptions;
31pub use readiness::{
32    DEFAULT_HEALTHCHECK_TIMEOUT, DependencyChecker, ReadinessHealthcheck, ReadinessLifecycle,
33    ReadinessReport, ReadinessState,
34};
35#[cfg(feature = "bootstrap")]
36pub use runner::run_oop_serving;
37pub use runner::{
38    ClientRegistration, OopGearSpawnConfig, OopSpawnOptions, RunOptions, ShutdownOptions, run,
39};
40pub use system_context::SystemContext;