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;
8mod application;
9mod c4_attempt;
10#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
11#[doc(hidden)]
12pub mod c4_capability;
13#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
14#[doc(hidden)]
15pub mod capacity_leaf;
16#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
17#[doc(hidden)]
18pub mod compiled_route;
19#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
20#[doc(hidden)]
21pub mod db_finalizer;
22#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
23#[doc(hidden)]
24pub mod db_return_budget;
25#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
26#[doc(hidden)]
27pub mod observability;
28#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
29#[doc(hidden)]
30pub mod post_driver;
31#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
32#[doc(hidden)]
33pub mod production_fact;
34#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
35#[doc(hidden)]
36pub mod production_provider;
37mod request;
38#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
39#[doc(hidden)]
40pub mod resource_envelope;
41#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
42#[doc(hidden)]
43pub mod response_framing;
44#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
45#[doc(hidden)]
46pub mod startup_assembly;
47#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
48#[doc(hidden)]
49pub mod termination_service;
50#[cfg(target_os = "linux")]
51mod thread_control;
52
53pub use application::Application;
54pub use request::{ApplicationPhase, RequestGuard, RequestLifecycle};
55pub use saddle_core::{ComponentLifecycle, LifecycleFuture};