Skip to main content

saddle_runtime/
lib.rs

1//! Saddle-managed async runtime and application lifecycle.
2//!
3//! V1 intentionally exposes no general-purpose spawn or runtime-construction
4//! API to business code.
5
6#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
7mod admission;
8#[doc(hidden)]
9pub mod alpha1_ingress;
10mod application;
11mod c4_attempt;
12#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
13#[doc(hidden)]
14pub mod c4_capability;
15#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
16#[doc(hidden)]
17pub mod capacity_leaf;
18#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
19#[doc(hidden)]
20pub mod compiled_route;
21#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
22#[doc(hidden)]
23pub mod db_finalizer;
24#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
25#[doc(hidden)]
26pub mod db_return_budget;
27#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
28#[doc(hidden)]
29pub mod diagnostics;
30#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
31#[doc(hidden)]
32pub mod observability;
33#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
34#[doc(hidden)]
35pub mod post_driver;
36#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
37#[doc(hidden)]
38pub mod production_fact;
39#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
40#[doc(hidden)]
41pub mod production_provider;
42#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
43#[doc(hidden)]
44pub mod profusegw;
45mod request;
46#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
47#[doc(hidden)]
48pub mod resource_envelope;
49#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
50#[doc(hidden)]
51pub mod response_framing;
52#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
53#[doc(hidden)]
54pub mod startup_assembly;
55#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
56#[doc(hidden)]
57pub mod termination_service;
58#[cfg(target_os = "linux")]
59mod thread_control;
60
61pub use application::{Application, LifecycleTimeouts};
62pub use request::{
63    ApplicationHealth, ApplicationHealthSnapshot, ApplicationPhase, RequestGuard, RequestLifecycle,
64};
65pub use saddle_core::{ComponentLifecycle, LifecycleFuture};